我有数据表,我必须将两个存储库项目添加到同一个单元格
DataTable dtbl = null;
public Form1()
{
InitializeComponent();
dtbl = new DataTable();
dtbl.Columns.Add("T1");
dtbl.Columns.Add("T2");
dtbl.Columns.Add("T3");
dtbl.Rows.Add("Test1", "Test2", "Test3");
dtbl.Rows.Add("Test4", "Test5", "Test6");
dtbl.Rows.Add("Test7", "Test8", "Test9");
gridControl1.DataSource = dtbl.DefaultView;
gridView1.CustomRowCellEdit += new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(gridView1_CustomRowCellEdit);
}
void gridView1_CustomRowCellEdit(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e)
{
RepositoryItemButtonEdit rebBtn = new RepositoryItemButtonEdit();
RepositoryItemComboBox rebcmb= new RepositoryItemComboBox();
rebBtn.AutoHeight = false;
rebcmb.AutoHeight = false;
e.RepositoryItem = rebBtn;
e.RepositoryItem = rebcmb;
}
我必须添加 Button 和 Combobox 是否可能。
The image i uploaded is a WPF gridColumn , is this possible in DEVEXPRESS GridControl
This is Devexpress Gridcontrol .. here i created Two sepetate columns..