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 User 2995 22-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.!!!


c# c# 
Updated on 22-Oct-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By