BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void grid_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) { GridCurrentCell cc = this.gridControl2.CurrentCell; this.gridAwareTextBox2.ReadOnly = this.gridControl2[cc.RowIndex, cc.ColIndex].ReadOnly; if(this.gridAwareTextBox2.ReadOnly) this.gridAwareTextBox2.BackColor = Color.White; }
>private void grid_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) >{ > GridCurrentCell cc = this.gridControl2.CurrentCell; > this.gridAwareTextBox2.ReadOnly = this.gridControl2[cc.RowIndex, cc.ColIndex].ReadOnly; > if(this.gridAwareTextBox2.ReadOnly) > this.gridAwareTextBox2.BackColor = Color.White; >} >>
private void gridControl1_CurrentCellActivating(object sender, GridCurrentCellActivatingEventArgs e)
{
if(e.RowIndex == 0)
e.Cancel = true;
}
This does not work for interior cells unless you want not to ss the currentcell frame when you click one. (This normally does not cause a problem with header, but does with regular cells.
>private void gridControl1_CurrentCellActivating(object sender, GridCurrentCellActivatingEventArgs e)
>{
> if(e.RowIndex == 0)
> e.Cancel = true;
>}
>
>
>This does not work for interior cells unless you want not to ss the currentcell frame when you click one. (This normally does not cause a problem with header, but does with regular cells.