I have a windows form application. In which I have a
datagrid bound to a dataset.

Can I have a checkbox or a radiobutton as a column in the
datagrid I am using Visual studio.net, with .net framework
1.0.

This is possible in asp.net aplication but don't know how
to do it using windows form datagrid. Also I don't want to
add any 3rd party control.

Thanks

adding radiobutton or checkbox in a datagrid by o'g

o'g
Thu Jul 24 18:51:32 CDT 2003

to add a checkbox to a grid the datatype of the
datasource's column that you want to be displayed must be
boolean... not sure about a radiobutton in a datagrid...

try this code out for a checkbox though..

Dim dt As New DataTable
Dim dr As DataRow

dt.Columns.Add("TRUEFALSE")
dt.Columns("TRUEFALSE").DataType = GetType
(System.Boolean)

dr = dt.NewRow
dr(0) = False
dt.Rows.Add(dr)

dr = dt.NewRow
dr(0) = True
dt.Rows.Add(dr)


Me.DataGrid1.DataSource = dt


>-----Original Message-----
>I have a windows form application. In which I have a
>datagrid bound to a dataset.
>
>Can I have a checkbox or a radiobutton as a column in
the
>datagrid I am using Visual studio.net, with .net
framework
>1.0.
>
>This is possible in asp.net aplication but don't know
how
>to do it using windows form datagrid. Also I don't want
to
>add any 3rd party control.
>
>Thanks
>
>.
>