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.

Block edit mode on cell level

Thread ID:

Created:

Updated:

Platform:

Replies:

72408 Mar 18,2008 02:27 AM Mar 18,2008 03:01 PM Windows Forms 1
loading
Tags: GridControl
ToDo
Asked On March 18, 2008 02:27 AM

Hi,
Is it possible to block the possibiity to enter edit mode on cell level?

Regards,
ToDo


Administrator [Syncfusion]
Replied On March 18, 2008 03:01 PM

Hi,

Thank you for using Syncfusion products

you can able to cancel the edit mode by use of below code snippet.

GridGroupingControl
-------------------
void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
int col= e.TableControl.CurrentCell.ColIndex;
int row = e.TableControl.CurrentCell.RowIndex;
if (col == 3 && row == 3)
{
e.Inner.Cancel;
}
}

GridControl & GridDataBoundGrid
-------------------------------
void Grid1_CurrentCellStartEditing(object sender, CancelEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;

int col = cc.ColIndex;
int row = cc.RowIndex;
if (col == 3 && row == 3)
{
e.Cancel;
}

}

Please let me know if you need any assistance

Best regards,
Johnson



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.

;