Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

row numbering in visual studio

$
0
0

I am completely new to this and need lost of help. Let me explain what i need and see if I can get an answer. 

I have a program that needs to have a pull-down list changed. The list is in xml like the following:

<Dataset>
<row1>
<l1>01</l1>
<l2></l2>
<l3></l3>
<l4></l4>
<descrip>GENERELT</descrip>
</row1>
<row2>
<l1>01</l1>
<l2>03</l2>
<l3></l3>
<l4></l4>
<descrip>TILGJENGELIGHET (UU)</descrip>
</row2>

I have a text file and an xlsx file that looks like this:

 2BYGNING
20BYGNING GENERELT
21GRUNN OG FUNDAMENTER
211Klargjøring av tomt
212Byggegrop
213Grunnforsterkning
214Støttekonstruksjoner
215Pelefundamentering
216Direkte fundamentering
217Drenering
218Utstyr og komplettering

it is a simple hierarchy and shuld be easy to make, it is not. 

I have since learned how to create a schema with the original (dataset above) and started to map the cells in excel because i found no other way to do it. The problem is that it is shorter than the new list. I have opened the original in visual studio and copy and pasted the entire list to the bottom of the first. Now the question can I renumber the rows so I can have the row after 454 become 455, 456, etc? 

<row454>
<l1>S</l1>
<l2>TRSH</l2>
<l3>MAS4</l3>
<l4></l4>
<descrip>4yd Masonry Split Face w/ Recycle</descrip>
</row454>
  <row1>
    <l1>01</l1>
    <l2></l2>
    <l3></l3>
    <l4></l4>
    <descrip>GENERELT</descrip>
  </row1>

I dont have to worry about the info in the rows for example "01" and "generlt" because that will change when i map it in excel correct?

Any one have any idea what i am doing and how to help?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>