Problem with Boolean control inside a datagrid

jmorato

New member
Joined
Sep 14, 2004
Messages
2
Programming Experience
1-3
Hi,



I'm having a problem with a Boolean control inside a datagrid because i want a control that only allows 2 possible values (True and False) but the Boolean control in the datagrid allows 3 states (True, False and DBNull).... :confused:



Here is the code I’m using….



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim dt As New DataTable()

dt.Columns.Add(New DataColumn("Option", GetType(String)))

dt.Columns.Add(New DataColumn("Yes/No", GetType(Boolean)))

Dim dv As New DataView(dt)

DataGrid1.DataSource = dv

End Sub





How can I put a control that allows only 2 states?

Any ideas?
 
Top Bottom