Greetings,
I have a DataGrid that is bound to a DataTable. The DataTable is
updated under the covers and as such is reflected in the DataGrid.
However, the DataGrid is editable (basically its a control for the user
that reflects real-time pricing information). When the user begins to
edit a row, I make the row as uneditable with some state information
that I've provided to the row. Now, the problem is that if the user is
editing and I add or update a row, the cell concedes focus and commits
the contents of the cell. As you can guess this is extremely annoying
if the data is updating with any regularity. Anyone have any insight
into this one?
We've been through one iteration of tweaking and contorting the DataGrid
and the DataGridColumn. So any insight here would be very useful.
-- Linkz
Ulrich Sprick - 30 Sep 2003 14:16 GMT
Hi,
I did not have this kind of trouble, but a starting point for your own experiments might be
http://www.i-syn.gmxhome.de/devcom/colstyles/intro.htm.
I recommend to prevent grid changes as long as the user edits a cell. Maybe a look at SuspendLayout() and ResumeLayout() helps.
HTH,
ulrich
> Greetings,
>
[quoted text clipped - 13 lines]
>
> -- Linkz