I made a mistake. I set the ReadOnly thru the ColStyles. Does setting properties thru the Cell itself trump the ColStyles? I know that RowStyles trump ColStyles, so does setting the actual Cell properties override both ColStyles and RowStyles?
>If I drop a GridControl on a form, and add a button, and a buttonclick handler like this:
>
>private void button1_Click(object sender, System.EventArgs e)
>{
> this.gridControl1[2,2].ReadOnly = true;
> this.gridControl1[2,2].BackColor = Color.Red;
>}
>
>clicking the button does not change the color of the cell for me. If you are seeing the color change the first time, I suspect you are executing the change code at some point the grid has the original style cached (maybe its the style for the current cell, and you are trying to set it while the cell is editing or something), and it is the cached old style that is allowing the first change to take. Just a guess.
>
>If you can post a sample showing the behavior, we can probably provide a more concrete explanation.