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.
Can anyone tell me if there is a way to delete/remove a row from the datagrid control which is boud to a dataset which consists of a datatable. There is not db involved here at this point. I am creating the datatable and then populating the grid from it. I can read the row and do...
Thanks for the response.
No, I am not doing anything with TabControl's TabIndex event.
Here is the code that gets fired when I click on tab2.
Private Sub cboCarrier_ID_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboCarrier_ID.SelectedIndexChanged...
One way I would do it by adding a module to the application and put in a public variable or a property to hold the color that all forms can access. Then in the form load event of each form set the back color property to the public variable or property. This way you have one place to change the...
I am using a tab control with two tabs (Tab1, Tab2) and a combobox (Combobox1, Combobox2) on each tab. Both of the comboboxes are populated with identical values from the DB.
On Tab1 if I select somthing from the combobox1, it should also be selected from the combobox2 on...