all groups > dotnet windows forms databinding > june 2005 >
You're in the

dotnet windows forms databinding

group:

Datagrid not refreshing current cell


Datagrid not refreshing current cell Jiho Han
6/24/2005 4:30:13 PM
dotnet windows forms databinding:
I have a datagrid whose DataSource is set to a DataView created from a
loaded DataSet. I have a filter combobox above the datagrid upon which some
value is selected, a new view is created and attached to the datagrid with a
different set of RowFilter value. The problem is that whenever I do this,
any current cell does not refresh with the rest of the cells but retains the
previous value. When I move off of the field, it immediately resets to the
current data in sync with the rest of the cells.

Can someone tell me what is going on?
Thanks
Jiho

Re: Datagrid not refreshing current cell Jiho Han
6/27/2005 10:39:41 AM
I found another post - which I can't seem to find now - that suggested this
is a bug (1.1 sp1) related to the column style being set to readonly.

I have also confirmed this in my own project. The workaround that I
employed is to clear the readonly flag before refreshing the datagrid and
resetting the readonly settings after.

Hope this helps.

[quoted text, click to view]

AddThis Social Bookmark Button