Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27248

[RESOLVED] CheckBox Column in DataGridView defaults to ReadOnly being True?

$
0
0
I have a Column in my DGV that is defined as a DataGridViewCheckBoxCell. My DGV is bound to a BindingSource but the query behind the Dataset (which is the BindingSource's DataSource) looks like this:

Code:

SELECT  0 AS Selected, EquipID, EquipName, Model, SN, Accredited, Description FROM CalEquip ORDER BY TypeID, EquipName
The first column acts as my CheckBox Column in my DGV. My problem is that even when I manually set the ReadOnly property to False, I run the app and when I try to check/uncheck the column, it won't allow me to. When I go back into the designer and look at that Column, it shows the ReadOnly property is True. What am I doing wrong?

Thanks,

Viewing all articles
Browse latest Browse all 27248


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>