Thanks for the reply, here is the code, it is rather large. The sub in the code is responsible for generating the xml file. It is being called in a loop.
PrivateSub Generate_XML(ByVal strFileName AsString, _
ByVal strFilePath AsString, _
ByVal ReturnInfo As...
I am using XMLTextWriter class to create XML files. It is working great, but I seem to have one problem that can't figure out.
The project calls for creating different files based on customer data. Individually they work fine, but when I put them in a loop, the first file is generated...
Thanks for your help on both the issues. There is still a slight problem with the first issue, I don't know ahead of time if it is going to be blank, secondly can't have a space in there.
Thanks for you help
I am using the XMLTextWriter to create a XML file for a client. The data is coming from the database for the file. I have couple of issues that I need to resolve, but not sure how to do that.
1. If the field has no data the XMLTextWriter will write the element as
<Name /> instead...
use viewstate and save your selected index in it. After your update go back and set the selectedIndex property of the list box to the value in viewstate.
Me.ViewState("Index") = ListBox1.SelectedIndex
Update / process
Thanks for your help TPM. I just figured it out. If any one is interested, here is how you will find out the row selected in a listview control
j = lvCards.SelectedItems(0).Index
where selecteditem(0) represents the first column (everything else in that row is a subitem for that selecteditem).
Can anyone tell me how I can check which row was clicked in a listview control. I am trying to read in subitems in row, but can't seem to read it in for a particular row. I can loop through the entire control and check for a subitem value, but can't do it for the row that was...
Thanks for your reply, I tried that and also tried creating a new datatable with no rows, and that would remove everything, but the problem is when there are no more rows, it will then remove the header from datagrid as well and I want the header to show even if there are no more rows left.
well, datatables, dataset or dataviews don't have to have a database to work. And you need one of these to populate your grid with. What I am thinking is you need to create a datatable and put it in a dataview. With dataview, you can modify the values and the output and it all be on your...
If I am understanding you correctly, then you can use a datatable and add that datatable to dataset or a dataview. Then you can set the setdatabinding property of the datagrid to the dataset or the dataview and the table name. Hope this helps.