- I have an <asp:button id="btnDelete"...> and the checkbox is created via grdData_ItemDataBound with id="chkRecordId":
Expand|Select|Wrap|Line Numbers
- Protected Sub grdData_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles grdData.ItemDataBound
- If e.Item.ItemType <> ListItemType.Header And e.Item.ItemType <> ListItemType.Footer Then
- e.Item.Cells(1).Text = "<input type='checkbox' name='chkRecordId' value='" & e.Item.Cells(0).Text & "'/>"
- End If
- End Sub
Thanks.