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.


Thread ID:





1598 Nov 13,2002 01:44 PM Nov 14,2002 08:09 AM Windows Forms 1
Tags: FAQ
Asked On November 13, 2002 01:44 PM

I have a combobox and a datagrid in a form. The data source is a table in a dataset. The data table will be clear and refill according the change of combobox. The problem happens when I try to click the datagrid (enter cell of a new row) while the dataset is empty. The message is Unhandled exception (index out of bound array). This exception happens randomly, couldn't be catch either in mouse down event or click event. Any one met the similar problem? I doubt the datagrid has some bugs in it. Ying

Administrator [Syncfusion]
Replied On November 14, 2002 08:09 AM

You might try resetting the currenty cell to 0,0 before you set a new datasource (from a change in your combobox). this.datagrid1.CurrentCell = new DataGridCell(0,0); //now set the new datasource this.dataGrid1.DataSource = newDataSource;


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.