Dear All,
I have requirement to display one parent and two child record in the following approach.
First Display all the parent record in the Grid(First column would have Two images)
on clicking the first image on the first column of each row, It should expand with respective child1 table record.
on clicking the second image on the first column of each row, It should expand with respective child2 table record.
We could do for one parent and one child with expand and collapse behavior as given below.
but we want same thing with one parent and two child. based on user click on image1/image 2 on each row, we have to display respective child table record.
Requesting your help to resolve this.
Note: Attached the sample image for your reference.
With Regards
Palanivelrajan
I have requirement to display one parent and two child record in the following approach.
First Display all the parent record in the Grid(First column would have Two images)
on clicking the first image on the first column of each row, It should expand with respective child1 table record.
on clicking the second image on the first column of each row, It should expand with respective child2 table record.
We could do for one parent and one child with expand and collapse behavior as given below.
protected void Page_Load(object sender, EventArgs e)
{
grdSearch.DataSource = dsSearchMeetingList.Tables[0];
grdSearch.DataBind();
}
protected void grdSearch_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
{
GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
int iGolalId = Convert.ToInt32(dataItem.GetDataKeyValue("Pk_Id").ToString());
grdSearch.DataSource = objViewMaintenance.GetDetailGoals(iGolalId); ;
}
but we want same thing with one parent and two child. based on user click on image1/image 2 on each row, we have to display respective child table record.
Requesting your help to resolve this.
Note: Attached the sample image for your reference.
With Regards
Palanivelrajan