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

前端 未结 2 1785
再見小時候
再見小時候 2021-01-29 02:21

I have a checkbox (you can see below) nested in detailed grid. How can I find it on updating click and check if checked or not? I\'m using DevExpress GridView

&l         


        
2条回答
  •  遇见更好的自我
    2021-01-29 02:26

    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
    

提交回复
热议问题