Add Linq Query to List through Looping using C# and VB.Net in ASP.Net

Last Reply one month ago By pandeyism

Posted one month ago

hello,

i have this linQ query

var q=(from c in db.country
 select c).ToList();

ListView1.DataSource=q;
ListView1.DataBind()

on run time i want to loop thru the result add additional columns in runt time which i can then bind to listview

 foreach (var item in q) { so here i want to loop thru result and add column "My comments" so with each row return by q it will add one more colimn my comments where i can add value which will bind with listview }

This question does not have replies that have been liked.