Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21598 | Nov 15,2004 08:42 PM UTC | Dec 20,2004 11:36 AM UTC | WinForms | 6 |
![]() |
Tags: GridControl |
grid.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
>grid.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
>
private void gridControl1_CurrentCellStartEditing(object sender, CancelEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; if(cc.ColIndex > 2 || (cc.ColIndex == 2 && this.gridControl1[cc.RowIndex, 4].Text != "1")) { e.Cancel = true; } }
>private void gridControl1_CurrentCellStartEditing(object sender, CancelEventArgs e) >{ > GridCurrentCell cc = this.gridControl1.CurrentCell; > if(cc.ColIndex > 2 || (cc.ColIndex == 2 && this.gridControl1[cc.RowIndex, 4].Text != "1")) > { > e.Cancel = true; > } >} >
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.
This page will automatically be redirected to the sign-in page in 10 seconds.