This works great, but my CellHeader text shows up in the textbox when I select a column. How do we clear the gridawaretextbox without clearing the cell? IE. If you don''t want cell values showing when readonly.
>Currently, you will have to handle this yourself. Below is one place you can do it. Setting the textBox to readonly will gray the background. If you do not want this, you can reset it as below.
>
>
>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;
>}
>
>