.Net 2.0 C# GridView CheckBox question

J

Jason Huang

Hi,

In the C#.Net 2.0, given that we don't have any data source bound to the
GridView in the design time, is it possible to have CheckBox in a GridView?
Thanks for help.


Jason
 
G

Guest

You can create a column of type CheckBoxField and the add it to the gridview
for example:

CheckBoxField cbField = new CheckBoxField();
cbField.DataField = "ColumnNameFromDataSource";
MyGridView.Columns.Add(cbField);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top