BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
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.
>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.