ASPxGridView Find control (Checkbox) and Check if it is checked or not

纵然是瞬间 提交于 2019-12-02 12:30:57
Estrella
Protected Sub grid_RowInserting(ByVal sender As Object, ByVal e As DevExpress.Web.Data.ASPxDataInsertingEventArgs) Handles grdProyectos.RowInserting
        Dim grid As ASPxGridView = (TryCast(sender, ASPxGridView))
        Dim chk As CheckBox= grid.FindEditRowCellTemplateControl(grid.Columns("name_colum"), "nameCheckBox")
        Dim marcada as Boolean = chk.Checked
End Sub

Use the built-in Selection feature of the ASPxGridView. It has events and methods to find the selected rows. Take a look at this sample:

http://demos.devexpress.com/ASPxGridViewDemos/Selection/Selection.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!