Okay, I tried:
VB.NET Code:
Dim colu As DataGridViewCheckBoxColumn = DataGridView2.Columns("FLY") With colu .ThreeState = True End With
And got:
An unhandled exception of type 'System.InvalidCastException' occurred in pgr.exe
Additional information: Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxColumn' to type 'System.Windows.Forms.DataGridViewCheckBoxColumn'.




Reply With Quote
