We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DataGridComboBoxColumn refresh

Thread ID:

Created:

Platform:

Replies:

10145 Jan 23,2004 02:17 AM Windows Forms 0
loading
Tags: FAQ
Munteanu
Asked On January 23, 2004 02:17 AM

Hi there, I have two problems concerning DataGrid. First goes like this: i fill a the grid through a table; suppose the table has 3 cols x 4 rows; i click the grid on the third col, forth row; then i move the focus on another control and i clear the table. Next time the grid receives the focus, a "Index was outside the bounds of the array." error message. Inspecting the CurrentCell property of the DataGrid, you will see that it is the same when the grid had last time the focus. In our case (3,4); but since the grid has no rows... I have tried setting the CurrentCell manually to (0, 0), but still the same message. The second goes like this: I have a DataGrid filled through a DataTable; i enter the grid to edit some values; while i'm still editing the values, i move the focus to another control and clear the underlying DataTable. At this moment, a "Object reference not set to an instance of an object." error appears. Thanks in advance for any reply ! Leo

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;