I am using VS 2008 and VB.NET as a language. I have two grids. In one grid, ii have user's data. e.g Mobile no, email and other information. In second grid, i have some already added alarm.
I need to attach two checkbox colums in each row in alarm gridview. On click of that checkbox, particular database operation will execute.
Currently, I added checkboxes into the datagridview but I can't check/uncheck them.
Please help me to resolve the check/uncheck problem and give me a hint to perform database operations of checkbox click.
This is how I added checkbox into the datagridview
Dim email As DataGridViewCheckBoxColumn = New DataGridViewCheckBoxColumn(True)
Dim sms As DataGridViewCheckBoxColumn = New DataGridViewCheckBoxColumn(True)
email.HeaderText = "Email"
email.ReadOnly = False
sms.HeaderText = "SMS"
sms.ReadOnly = False
UserAlarmDataGridView.Columns.Add(email)
UserAlarmDataGridView.Columns.Add(sms)
I tried to make the column's readonly property to false but it doesn't work.