Grid, ReadOnly

hi,

why doesn't the color of the cell don't change???
or better, why have the line "grid[2, col].ReadOnly = false;" no effect?
here the code sample.

grid[2, col].ReadOnly = false;
MessageBoxAdv.Show(this,"" + grid[2, col].ReadOnly);
grid[2, col].BackColor = color;

the message box show me that the ReadOnly variable is still true. why??? what do i wrong?

thx & regards,
ladida


3 Replies

JJ Jisha Joy Syncfusion Team December 15, 2010 06:00 AM UTC

Hi Ladida,

Please try the following code and let me know if this helps.

this.gridControl1.IgnoreReadOnly = true;
this.gridControl1[2, 2].BackColor = Color.Red;
this.gridControl1.IgnoreReadOnly = false;


Regards,
Jisha



AS asdf December 15, 2010 12:52 PM UTC

hi,

yes, it helps.

ty



NR Nirmal Raja Syncfusion Team December 16, 2010 03:58 AM UTC

Hi Ladida,

Thank you for the update.

Regards,
Nirmal


Loader.
Up arrow icon