Recent content by Bilalq

  1. B

    Strange XML TextWriter issue

    figured it out. It was a coder goofup :D
  2. B

    Strange XML TextWriter issue

    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...
  3. B

    Strange XML TextWriter issue

    Hello, 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...
  4. B

    How to write this using XML TextWriter

    Hello, Can someone please tell me how I can write this using XML TextWriter. <Department ID="1">CS</Department> Basically, the element has an atribute and a value. Thanks in advance. Bilal
  5. B

    Couple of XML Issues, Please Help..........

    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
  6. B

    Couple of XML Issues, Please Help..........

    Some body must have done this ..........:)
  7. B

    Couple of XML Issues, Please Help..........

    Hello All, 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...
  8. B

    Dropdownlistbox runtime selection

    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 ' ListBox1.SelectedIndex =...
  9. B

    How to check for selected row in ListView

    True and that what I was interested in. To do miultiple selection you can use SelectedIndices property. Thanks for your help.
  10. B

    How to check for selected row in ListView

    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).
  11. B

    How to check for selected row in ListView

    Thank you for your reply, but that still does not give me what row was selected and that is what I am after. Thanks for your help.
  12. B

    How to check for selected row in ListView

    Hello, 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...
  13. B

    Removing rows from a datagrid

    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.
  14. B

    simple table in a form

    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...
  15. B

    simple table in a form

    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.
Top Bottom