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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -