Last Column of Grid cannot focus on error

We are using VS 2005 and Syncfusion 4.2.0.37.

In our database, the last column happens to be an int datatype. In the attached sample, please connect to any database and try to have the last column as a number type entry. You can drag a column to be the last column.

While running the program, type an alpha character in the last column. The error will be detected, a message box is displayed, an error provider is show in the cell. Now the problem. Try to focus the cell to correct the error. The cell will not permit focus. The workaround is to drag the last column to the left, then the input disappears and you can edit the column again. However, this is NOT acceptable. We should be able to correct an error no matter which column it is in.

Under normal conditions, we can edit the last column. However, setting the SelectionMode property to anything other than NONE causes the error. (See Form1.cs)

gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;


GroupingGridErrorLastColumn.zip

5 Replies

AD Administrator Syncfusion Team December 19, 2006 08:32 PM UTC

Hi Martin,

Thank you for being patience.

Please refer to the following video clip which demonstrates the steps followed by us to reproduce the issue here. Is it possible for you to suggest us more details on reproducing the issue here? So we could suggest you a better solution at the earliest.

VideoClip: DBBinding_GGC.zip

Have a nice day.

Best regards,
Madhan


MN Martin Nitschke December 19, 2006 09:01 PM UTC

Yes. I just tried something. Your sample had 4 columns, where mine had over 30. I reduced my columns down to 4 and it works. Try with a datasource with greater than 30 columns.


AD Administrator Syncfusion Team December 21, 2006 12:45 PM UTC

Hi Martin,

Thanks for the information and for being patience.

We could able to reproduce the issue in the specified version. We will consult with our development team and let you know the details on this issue.

Have a nice day.

Best regards,
Madhan


MN Martin Nitschke January 4, 2007 06:54 PM UTC

Madhan,

I just wondered if you have an update on this issue for us. Thanks.


AD Administrator Syncfusion Team January 5, 2007 12:44 PM UTC

Hi Martin,

We appreciate your kindly patience.

You can work around this behavior by handling the TableControlCellClick event and set the focus to the respective cell. The following is the code snippet.

>>>>>>>>>>Code Snippet<<<<<<<<<<<<<
//this.gridGroupingControl1.TableControlCellClick += new GridTableControlCellClickEventHandler(grid_TableControlCellClick);
void grid_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
e.TableControl.CurrentCell.MoveTo(e.Inner.RowIndex, e.Inner.ColIndex, GridSetCurrentCellOptions.SetFocus);
}
>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<

Please try it and let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

Loader.
Up arrow icon