A
AboutJAV
Hi,
I am using a datagrid and two dataset with different data. Both views
of the grid contains 5 columns. I toggle between two different views of
the grid which display different types of data. When I toggle, I change
the last 3 columns to different name and bind a different dataset. When
I startup the application, the first dataset when I click on any empty
cells, it works find. However, when I switch for the first time to the
alternative dataset and change the name, it will throw an exception
Index was out of range. Must be non-negative and less than th esize of
the collection.
Parameter name: index
When I keep the column names the same between the two grid views, it
works fine. However, I need to change the column names to indentify the
column type of data.
Any help is appreciated.
I am using a datagrid and two dataset with different data. Both views
of the grid contains 5 columns. I toggle between two different views of
the grid which display different types of data. When I toggle, I change
the last 3 columns to different name and bind a different dataset. When
I startup the application, the first dataset when I click on any empty
cells, it works find. However, when I switch for the first time to the
alternative dataset and change the name, it will throw an exception
Index was out of range. Must be non-negative and less than th esize of
the collection.
Parameter name: index
When I keep the column names the same between the two grid views, it
works fine. However, I need to change the column names to indentify the
column type of data.
Any help is appreciated.