470,620 Members | 1,554 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,620 developers. It's quick & easy.

DataGrid Combobox Column Redraw Problem

AR
I have a datagrid containing a single combobox column. It also contains an
'Add New Row' button at the bottom of the datagrid. The datagrid is in a
form that contains 'Save' and 'Restore' buttons. The 'Save' button saves all
the data from the dataset to the database. The 'Restore' button resets the
datagrid to the values contained in it at the last 'Save' operation.

When I have 3 entries (rows) populated within the datagrid. If I delete the
2nd row, immediately add a new row and press the 'Restore', the datagrid
seems to lock up and only the first row is editable.

If I make a change to the form and 'Save', then everything works fine.
If I click the header text on the datagrid combobox column, the column is
sorted and all rows become editable again ...

However I cannot get rid of this problem in code ... it seems like I have to
force the datagrid to refresh, but using datagrid.refresh does not work ...
any ideas ?

Thanks
Nov 17 '05 #1
0 1491

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bill C. | last post: by
3 posts views Thread by Kevin | last post: by
3 posts views Thread by TT (Tom Tempelaere) | last post: by
3 posts views Thread by Doug | last post: by
4 posts views Thread by Anthony | last post: by
2 posts views Thread by =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.