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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CheckBox in GridDataboundGrid

Thread ID:





14722 Jun 3,2004 03:14 AM UTC Jun 3,2004 05:23 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On June 3, 2004 03:14 AM UTC

I encounter a problem when dealing with GridDataboundGrid. I tried to set the 1st cell ( e.rowindex= 1 , e.colindex =1) to enabled= false where the celltype is "CheckBox" in the PrepareViewStyleInfo. But it is still enabled. This only happen in the 1st cell.

Administrator [Syncfusion]
Replied On June 3, 2004 05:23 AM UTC

Does the grid have focus when your form first appears? If so, I suspect the problem is that cell 1,1 has already be set up to be the current cell before the PrepareViewStyleInfo is hit when the grid is being drawn. This means the style.Enabled = false does not take effect because cell 1,1 is already set to be the current one before it is drawn. If this is the case, you can call grid.CurrentCell.MoveTo to explicitly position the currentcell initially to a cell that is enabled (maybe 1,2), or you can use this code so no cell is current when the grid first appears. this.gridDataBoundGrid1.CurrentCell.MoveTo(-1, -1);


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon