c# - How does one dynamically add a new datalist or a row to a gridview? -
to able dynamically add new datalist or row gridview when placed in foreach loop example have sql query outputs values each time id number in list, need way output them…
so create new datalist or row each 1 created?? or there way achieve this
first filter list, assign gridview datasource:
mygridview.datasource = yourlist.where(i => i.theid == 123); mygridview.databind();
that automatically create row each list item.
Comments
Post a Comment