Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
this.gridGroupingControl1.Table.DefaultRecordRowHeight = 120;
this.gridGroupingControl1.TableDescriptor.Columns.Add("SampleData");
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Add("SampleData");
this.gridGroupingControl1.TableDescriptor.Columns[3].Width = 80;
this.gridGroupingControl1.TableDescriptor.Columns["SampleData"].Appearance.AnyRecordFieldCell.CellType = "Control";
this.gridGroupingControl1.QueryCellStyleInfo += GridGroupingControl1_QueryCellStyleInfo;
private void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.Style.CellType == "Control" && e.Style.Control == null) //e.TableCellIdentity.ColIndex == 4 also works
{
var gc = GetGridControl(e.TableCellIdentity.RowIndex);
gc.CurrentCellEditingComplete += Gc_CurrentCellEditingComplete;
gc.CurrentCellKeyDown += Gc_CurrentCellKeyDown;
e.Style.Control = gc;
}
} |