Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143271 | Mar 12,2019 02:39 PM UTC | Mar 13,2019 12:20 PM UTC | WinForms | 1 |
![]() |
Tags: GridGroupingControl |
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;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.