DATAGRID

L

Luca

I'm working in Visual Basic .Net....Visual Studio 2003.

I have a windows application with a datagrid that have as Datasource a
DataTable .

I'd like to create a new datacolumn with a checkbox and this check box must
be checked if another column in the datagrid contain data.

How can i do ??

Thank you
 
E

Erik Frey

You should check out the Expression property of a DataColumn.

It's also available in the Add method of Columns collection:

workTable.Columns.Add("SalesTax", typeof(Double), "Total * 0.086");

Erik
 
L

Luca

Thank you... i read it but i haven't found what i'm looking for...
If u look the example, or if u download it, you can see that there is not a
column without a databinding in a column of a table.
i'd like to add a column with a check box and this check box must be enabled
or disabled another column is empty or not ...
Thank you.
Luca
 

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