forum

Home / DeveloperSection / Forums / How can I Find Gridview in a listview using C#?

How can I Find Gridview in a listview using C#?

Anonymous User261622-Oct-2013

I have a gridview in template field of listview. I got gridview if i use the following line of code

protected void listView_ItemDataBound(object sender, ListViewItemEventArgs e) 
{
   if (e.Item.ItemType == ListViewItemType.DataItem)
   {
        ListViewDataItem itemList = (ListViewDataItem)e.Item;
        GridView grdView = (GridView) itemList.FindControl("gridView");
   }
}

I want to make this gridview editable and I don't know how it done please help me out.!!!


Updated on 22-Oct-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By