将数据表绑定到 aspxgridview 组合框列
我有一个带有组合框列的 ASPxGridView。现在我想将数据表绑定到该组合框,该数据表是在后面的代码中创建的,因此在创建网格视图时它不存在。相反,我必须将数据表绑定到 HtmlEditFormCreated 事件中的组合框。 我尝试过:
ASPxGridView4.FindControl("PNaam");
但这似乎不允许我将数据表绑定到它。所以我想知道如何将数据表绑定到 HtmlEditFormCreated 事件内的组合框列?
I have a ASPxGridView with a combobox column. Now i want to bind a datatable to that combobox, this datatable is made in the code behind so it does not exist at the moment the gridview is being made. instead i have to bind the datatable to the combobox in the HtmlEditFormCreated event.
I tried :
ASPxGridView4.FindControl("PNaam");
But that does not seem to allow me to bind the datatable to it. So i was wondering how can i bind the datatable to the combobox column inside the HtmlEditFormCreated event?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如下所示处理 Page_Init 事件,将列的编辑器绑定到您的 DataTable:
Handle the Page_Init event as shown below to bind the column's editor to your DataTable: