C#.Net自定义控件 - GridPopupContainerLookup
C#.Net自定义控件 - GridPopupContainerLookup
将Column的ColumnEdit 改为:RepositoryItemPopupContainerEdit , 然后绑定两个事件:QueryPopUp 和 QueryCloseUp.
private void Form1_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("PID", typeof(string));
dt.Rows.Add(new object[] { "B888" });
dt.Rows.Add(new object[] { "B99999" });
dt.AcceptChanges();
gridControl1.DataSource = dt;
(colBackPID.ColumnEdit as RepositoryItemPopupContainerEdit).QueryPopUp = new CancelEventHandler(Form1_QueryPopUp);
(colBackPID.ColumnEdit as RepositoryItemPopupContainerEdit).QueryCloseUp = new CancelEventHandler(Form1_QueryCloseUp);
}
// 来源:www.CSFramework.com, C/S结构框架学习网
扫一扫加作者微信
将Column的ColumnEdit 改为:RepositoryItemPopupContainerEdit , 然后绑定两个事件:QueryPopUp 和 QueryCloseUp.
private void Form1_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("PID", typeof(string));
dt.Rows.Add(new object[] { "B888" });
dt.Rows.Add(new object[] { "B99999" });
dt.AcceptChanges();
gridControl1.DataSource = dt;
(colBackPID.ColumnEdit as RepositoryItemPopupContainerEdit).QueryPopUp = new CancelEventHandler(Form1_QueryPopUp);
(colBackPID.ColumnEdit as RepositoryItemPopupContainerEdit).QueryCloseUp = new CancelEventHandler(Form1_QueryCloseUp);
}
// 来源:www.CSFramework.com, C/S结构框架学习网
扫一扫加作者微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网