BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
if(e.RowIndex == 2 && e.ColIndex == 2 && e.Style.Text == "bad")
e.Style.ReadOnly = true;
>if(e.RowIndex == 2 && e.ColIndex == 2 && e.Style.Text == "bad")
>e.Style.ReadOnly = true;
>
if(e.RowIndex == 2 && e.ColIndex > 0) { //set row 2 readonly if col 1 is ''bad'' string s = (e.ColIndex == 1) ? e.Style.Text : this.grid[e.RowIndex, e.ColIndex].Text; if( s == "bad") e.Style.ReadOnly = true; }The point is to get the test value from the style object when the text value cell is being requested, but when some other cell is being requested, you get the test value from the grid.
>if(e.RowIndex == 2 && e.ColIndex > 0) >{ > //set row 2 readonly if col 1 is ''bad'' > string s = (e.ColIndex == 1) ? e.Style.Text : this.grid[e.RowIndex, e.ColIndex].Text; > if( s == "bad") > e.Style.ReadOnly = true; >} >> >The point is to get the test value from the style object when the text value cell is being requested, but when some other cell is being requested, you get the test value from the grid. What is the equivalent for GridGroupingControl ? Jamâl-Dine DISSOU