Ok, I have another question ready...
I'm still doing a windows app with a datagrid in it. I want the user to be able to add rows to the dataset by just inputting data in the empty bottom row, and then move focus to a different row. This is is how it works in eg. Enterprise Manager for SQL Server.
I was planning on doing this by going through the Row list of the datasource (it's a DataView) in the CurrentCellChanged event, and then adding a row to the underlying datatable if there was any data in the 'input row'.
My problem is that when there is no data in the bottom row it shows up fine in the Row list of the dataview during runtime. But if I enter some data into the bottom row, the row somehow disappears from the Row list!
Does anybody know why this happens?
Thanks
MNJ
I'm still doing a windows app with a datagrid in it. I want the user to be able to add rows to the dataset by just inputting data in the empty bottom row, and then move focus to a different row. This is is how it works in eg. Enterprise Manager for SQL Server.
I was planning on doing this by going through the Row list of the datasource (it's a DataView) in the CurrentCellChanged event, and then adding a row to the underlying datatable if there was any data in the 'input row'.
My problem is that when there is no data in the bottom row it shows up fine in the Row list of the dataview during runtime. But if I enter some data into the bottom row, the row somehow disappears from the Row list!
Does anybody know why this happens?
Thanks
MNJ