BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
ExpressionFieldDescriptor fd = new ExpressionFieldDescriptor("Cost", "[Price] * [Quantity]", typeof(double));
this.grid.TableDescriptor.ExpressionFields.Add(fd);
GridStyleInfo style = this.grid.TableDescriptor.Columns["Cost"].Appearance.AnyRecordFieldCell;;
style.BackColor = Color.LightGoldenrodYellow;
style.CellType = "Static";
style.HorizontalAlignment = GridHorizontalAlignment.Right;
style.Format ="#.000";
2) You can try code like:
if(e.Table.CurrentRecord != null) { Console.WriteLine(e.Table.CurrentRecord.GetValue("CheckBoxCol")); }
private void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e) { GridTableCellStyleInfo style = e.Inner.Style as GridTableCellStyleInfo; if(style != null && style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.Name == "Col2" && (style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)) { int val = (int) style.CellValue; if(val < 0) style.TextColor = Color.Red; } }