Users Pricing

forum

Home Forums How can I Find Gridview in a listview using C#? – MindStick

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

Anonymous User 3184 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.!!!


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md