By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,865 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,865 IT Pros & Developers. It's quick & easy.

DataGrid Combobox Column Redraw Problem

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.