gridview1.DataSource = OurCollection
gridview1.DataBind()

But what if we needed to give a template column contains a check box or maybe a DropDownList a value from the database. in the same way. well no it is not so right to loop on each row and set the value manually.
the correct way is so simple just give the checked value a binded value like this:
Checked='< % # Bind("property or database field name") % > '

1 comment:
good work osama
Post a Comment