Question DataGridView Problem - Hiding a value

kasteel

Well-known member
Joined
May 29, 2009
Messages
50
Programming Experience
10+
Hi

I have an access database with 2 columns in my app. Both columns have checkboxes.

In my Datagridview:
If a checkbox in column A is not clicked I want the corresponding cell in column B to be disabled or hidden. (Only the cell and not the whole row) Not sure how to do this though. :)
And if it is clicked I want the corresponding cell to be enabled on the other column. (Column B)

I tried:

VB.NET:
   For Each row As DataRow In MydbDataSet.Table1.Rows
            If CBool(row("MyColumnA")) Then

            'but not sure what to do here...

            End If

Any help would be appreciated.

Thanks
 
I have also tried this:

VB.NET:
 For Each row As DataRow In AutomatedbDataSet.Table1.Rows
            If CBool(row("Check")) Then

                Table1DataGridView.CurrentRow.Cells("After").Visible = False

            End If

But I get a Error: 1 - Property 'Visible' is 'ReadOnly'.
 
Back
Top