I'm trying to delete and insert rows into the grids underlying datatable. When the item is at the top of the GDBG, the operation is quick, but when the item is at the bottom of the GDBG it is very slow (about 10,000 items in the grid).
The slowdown only occurs when the DataTable is bound to the grid, so I'm thinking this has something to do with the binding?
DataRow delRow = _dsItems.Tables[0].Rows.Find(updateID);
_dsItems.Tables[0].Rows.Remove(delRow);
DataRow newRow = PostHelper.GetItem(_category,_itemDefinition,updateID);
_dsItems.Tables[0].ImportRow(newRow);
SA
scot adams
September 12, 2003 04:46 PM UTC
sorry to everyone about the no subject messages. i keep typing the subject in the attach file field. i need a vacation!
SA
scot adams
September 12, 2003 06:32 PM UTC
figured it out.
i had an event handler attached to the listchanged event on the table.
thanks anyway.