samsmithnz
Senior Contributor
I have a small problem with a dataset that I keep losing (eg =nothing). In my page_load event I connect to a database, create a (public) dataset, and then bind the dataset to the datagrid.
What I want to do now is add another row to the datagrid (but not commit to the database yet). So I'm trying to find my public dataset to add another row, and its always nothing!
Am I missing something awfully fundamental here? I'm primaryly a windows programmer... so its possible I'm being a dunce...
The only other way I can think of doing this, is to convert the dataset into xml and chuck it into a hidden input, and then extract it, modify it, and put it back when I need to go to the server...
What do you guys think about this idea?
What I want to do now is add another row to the datagrid (but not commit to the database yet). So I'm trying to find my public dataset to add another row, and its always nothing!
Am I missing something awfully fundamental here? I'm primaryly a windows programmer... so its possible I'm being a dunce...
The only other way I can think of doing this, is to convert the dataset into xml and chuck it into a hidden input, and then extract it, modify it, and put it back when I need to go to the server...
What do you guys think about this idea?