views:

244

answers:

0

Work on asp.net C# vs05.Want to fill each row of a grid separately .On desktop application i wrote bellow code to fill listview :

foreach(Object in o Collection)
{
Listview oItem=new ListItem("value1");
oItem.items.add("Value2");
oItem.Items.Add("Value3");
oItem.Tag(o);//Put collection object 
}

To use the above code, i want to fill gridview control on asp.net web andAlso want to put the object on the control but i fail .My gridview have three column. I need help to fill gridview separately and to put object on gridview control?