BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
GridStyleInfo style = gridControl1[1,1];
style.Text = "SomeText";
MyCustomStyleProperties customStyle = new MyCustomStyleProperties(style);
customStyle.TheLocked = true;
customStyle.TheFont.Bold = true;
Then you can retrieve these properties in the buttonhandler using this code. The code also flips their values, so the next time you click the button, you see a different result.
private void button1_Click(object sender, System.EventArgs e) { MyCustomStyleProperties customStyle = new MyCustomStyleProperties(this.gridControl1[1,1]); Console.WriteLine("{0} {1}", customStyle.TheLocked, customStyle.TheFont.Bold); customStyle.TheLocked = !customStyle.TheLocked; customStyle.TheFont.Bold = !customStyle.TheFont.Bold; Console.WriteLine(""); }