Use one datagrid in another datagrid(urgent!)
-
Hi, I am using the datagrid and in one datagrid column I have used another datagrid. So how can I find that datagrid and bind data to that. can any one give me solution for this?????? Thanks to all
-
Hi, I am using the datagrid and in one datagrid column I have used another datagrid. So how can I find that datagrid and bind data to that. can any one give me solution for this?????? Thanks to all
-
Hi, I am using the datagrid and in one datagrid column I have used another datagrid. So how can I find that datagrid and bind data to that. can any one give me solution for this?????? Thanks to all
In gridview you can do it following manner: On Rowdatabound:
protected void ParentGridView_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { GridView ChildGridView = (GridView)e.Row.FindControl("NestedGridView"); } }
Here "NestedGridView" is the gridview Control have created in aspx file. And "ChildGridView" object which you have created to play in .cs file. Hope This will help you.