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.

Problem when focus shifts away from the GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

8605 Nov 13,2003 01:52 PM Nov 14,2003 01:45 PM Windows Forms 7
loading
Tags: GridControl
Gene Gorokhovsky
Asked On November 13, 2003 01:52 PM

I have a GDBG 1.6.1,6, It is bound to a DataView, most of the columns are bound checkboxes. When user clicks on any checkbox in the first row of the grid, and then clicks on any other control (such as a button) on a form, the first row's checkbox is reset to the original state. This does not happen if user edits any other row, i.e. clicking away does not change state of the row unexpectedly (which is the normal behavior) Gene Gorokhovsky

Gene Gorokhovsky
Replied On November 13, 2003 01:57 PM

More info: the problem only occurs when editing the first row is the first action that user does on the grid. After changes to any other row the problem no longer manifests itself. > I have a GDBG 1.6.1,6, It is bound to a DataView, most of the columns are bound checkboxes. > When user clicks on any checkbox in the first row of the grid, and then clicks on any other control (such as a button) on a form, the first row's checkbox is reset to the original state. > This does not happen if user edits any other row, i.e. clicking away does not change state of the row unexpectedly (which is the normal behavior) > > Gene Gorokhovsky

Administrator [Syncfusion]
Replied On November 13, 2003 06:27 PM

I tried to see this problem in the attached sample using 1.6.1.6, but could not. Can you see the problem in this sample?

Gene Gorokhovsky
Replied On November 14, 2003 08:15 AM

The problem can bee seen in the attached sample. I have modified your code with several relevant fragments that we are using in our app. Sorry if the code is not absolutely minimal. Gene

Administrator [Syncfusion]
Replied On November 14, 2003 08:46 AM

The samething is happening to me in my app(1.6.1.8 databound grid). The first row checkbox is getting reset. After another change is made, it is taking the values properly. Sometimes, non-checkbox (combobox, textbox) values are also getting reset. Thanks, - Reddy

Administrator [Syncfusion]
Replied On November 14, 2003 10:24 AM

I think you can avoid the problem by setting the datasource after you set the GridBoundColumns instead of before you set them.
//this.DataSource = dataSource;
if (cols != null) 
{
	this.GridBoundColumns.AddRange(cols);	
}
this.DataSource = dataSource;

Gene Gorokhovsky
Replied On November 14, 2003 12:47 PM

It worked.This was a strange one, indeed. Thanks! Gene

Thomas Zueger
Replied On November 14, 2003 01:45 PM

Clay, I'm running into the same problem, but only on one form. The grid displays the data of a child relation. Sometimes the text typed into the first cell will be lost after moving to the next row/cell e.g. by pressing the tab key. I want to check if the reset of the DataSource will solve the problem. Regards, Thomas

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.

;