Hi there,
I thought I had a simple issue and the further I investigate the trickier it gets. What I use:
VB2005 and Windows Mobile 5.0
I want to make a program with a kind of DataGrid which show the barcodes I've read and the amounts entered by keyboard.
I thought I create a DataTable to store the data and present it in a DataGrid (by binding it) on the screen. No problem so far. Now I like to add a delete button aswell. No problem there...... well in fact there is. Once you delete a row with a command like
I found out that resulting DataGrid doesn't represent the underlying DataTable as the indexes are ****ed up. And this is not an official MS bug, it is by design.....
A solution would be (I read on the Net) to use DataGridView, but this is not supported in CF2.0 which uses Windows Mobile 5.0
Is there any solution for this?
Thanks in advance,
Albert
I thought I had a simple issue and the further I investigate the trickier it gets. What I use:
VB2005 and Windows Mobile 5.0
I want to make a program with a kind of DataGrid which show the barcodes I've read and the amounts entered by keyboard.
I thought I create a DataTable to store the data and present it in a DataGrid (by binding it) on the screen. No problem so far. Now I like to add a delete button aswell. No problem there...... well in fact there is. Once you delete a row with a command like
Code:
x = DataGrid.Item(DataGrid.CurrentRowIndex, 0)
TableScan.Rows.RemoveAt(x)
A solution would be (I read on the Net) to use DataGridView, but this is not supported in CF2.0 which uses Windows Mobile 5.0
Is there any solution for this?
Thanks in advance,
Albert