Home - Forums-.NET - FlyTreeView (ASP.NET) - Check the checkboxes based on a table column

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Check the checkboxes based on a table column
Link Posted: 19-Sep-2005 06:09
Hi,

I am populating a treeview [RoleTree] from a table [Roles]. Based on the value in one of the table column [Email], I want to check (Email has a value) or uncheck (Value in Email is NULL) the checkbox. Can I do that and if so, how?

Thanks

Jasmeet
Link Posted: 20-Sep-2005 21:28
You should just add another column to your DataTable that will have a boolean expression as its value. And name it as "IsChecked" column.

You may go to DataColumn.Expression property documentation (at MSDN library) and  refere to Remarks section in it for explicit details on Expression syntax.