I need to add to check box controls to the data grid view, when I am retreiving data from database, i.e I need to loop the check boxes such that how many ever rows I get from the database, these rows should have check boxes beside them.
I tried writing some code which is below, I was able to get check boxes, but I am not able to access them, i.e I am not able to check them, I also want something like SelectAll and UnSelectAll buttons, when I click on the SelectAll button, it should check all the check boxes and when I click UnselectAll button, it should be able to uncheck all check boxes.
And also one more thing, I don't why it is adding an extra empty row in the data gird view, how do I avoid that.
If GetDataSet(DS, sSQL) Then
count = .Rows.Count
If .Rows.Count > 0 Then
'Populated the DataGridView with the data from the dataset
RDGVW.DataSource = DS.Tables("Table")
.Name = "check"
.HeaderText = "Status"