在 UltraGrid 中添加复选框
如何在 infragistics UltraGrid 中动态添加复选框
How to dynamically add checkbox in infragistics UltraGrid
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在 infragistics UltraGrid 中动态添加复选框
How to dynamically add checkbox in infragistics UltraGrid
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
只需确保要绑定的列的数据类型是 bool 类型即可。 它将自动为该列创建复选框。
Just make sure that the data-type of the column you are binding is of type bool. It will automatically create checkbox for that column.
尝试以下操作
try the following
确保列数据类型为 bool(True/False 或 0/1),然后设置:
应该可以。
Make sure the column data type is
bool
(True/False or 0/1) then set:That should work.
将数据绑定到网格时,您可以通过以下查询调用数据表的集合:
“Select Convert(bit,0) as IsChecked, [OTHER_COLUMNS] from [TABLE_NAME]”
这将返回带有第一列复选框的数据表。
使用数据源将其与您的网格绑定。
While binding data to the grid, you can call the collection of a datatable through the query below:
"Select Convert(bit,0) as IsChecked, [OTHER_COLUMNS] from [TABLE_NAME]"
This will return a datatable with a first column of checkboxes.
Bind it with your grid using datasource.