|
-
Nov 10th, 2016, 12:50 PM
#9
Thread Starter
Lively Member
Re: How do I remove rows in a datagridview using a Checkbox column?
@TnTinMN I am using your code and I am getting the same results. I have tried creating a break point and stepped through the code.
Once the break cursor gets to a records with the checkbox column checked "Dim val As Object = DataGridView1.Rows(i).Cells(0).Value" Value says its true, but on this line "Dim istrue As Boolean = If(TypeOf val Is Boolean, DirectCast(val, Boolean), False)" Val says its nothing. Furthermore, on this line "If istrue Then" istrue is reading false. I am so confused by this....
I am sure that the DataGridViewCheckBoxColumn is at index zero because I get the same results when I use the actual column name and not the index.
I am unsure on how to tell how the Column is configured (TriState, TrueValue, FalseValue, IntermediateValue, data bound status)

Sorry for the pm, I did not know that was bad forum etiquette and I am desperate to resolve this issue.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|