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.

Last Column of Grid cannot focus on error

Thread ID:

Created:

Updated:

Platform:

Replies:

53655 Dec 18,2006 10:43 AM Jan 5,2007 07:44 AM Windows Forms 5
loading
Tags: Grouping
Martin Nitschke
Asked On December 18, 2006 10:43 AM

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

Administrator [Syncfusion]
Replied On December 19, 2006 03:32 PM

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

Martin Nitschke
Replied On December 19, 2006 04:01 PM

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.

Administrator [Syncfusion]
Replied On December 21, 2006 07:45 AM

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

Martin Nitschke
Replied On January 4, 2007 01:54 PM

Madhan,

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

Administrator [Syncfusion]
Replied On January 5, 2007 07:44 AM

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

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.

;