I need an easy way to bind checkboxlist in asp.net /C# .
I pull 3 columns from database id, name and IsActive. The identifier and name, I think, will be understood by its name. And IsActive will be used to display the checked and unchecked window. I just want to know, can I bind child flags to IsActive values ββwhen data binding?
eg.
cbxlFeatures.DataSource = dt; cbxlFeatures.DataValueField = "Id"; cbxlFeatures.DataTextField = "Name"; // something similar to this cbxlFeatures.SomePropert= "IsActive"; cbxlFeatures.DataBind();
I know the usual way of iterating over columns of elements and data, as well as comparing and checking checks. I need a simple and optimized way ...
thanks
source share