updating database
-
How do I update the database if I don't know which row to update. The selected datagrid row doesn't match that of dataset row because of how I display things. So how do I match up the dataGrid row to the dataTable row?
hi, The one way which appears in my mind is : While displaying the dataset content on the datagrid maintain the datagrid row :: dataset relation (may be in the form of HashTable) and later on while updating refer to this relation HashTable to locate the dataset rows or columns... Hope this helps you... sorry if I haven't got your question right... regards, Aryadip. Cheers !! and have a Funky day !!
-
hi, The one way which appears in my mind is : While displaying the dataset content on the datagrid maintain the datagrid row :: dataset relation (may be in the form of HashTable) and later on while updating refer to this relation HashTable to locate the dataset rows or columns... Hope this helps you... sorry if I haven't got your question right... regards, Aryadip. Cheers !! and have a Funky day !!
hi, how would I go about setting up a hashtable. I haven't worked with the hash Table yet. What I did try, what to see whether the table contained the a row with a field that matches the first cell in the datagrid. But it made my dataAdapter or something to stop working before the problem even hit that function. yet gave no errors at start-time.