Hi,
I have a RadGridview, while displays stock data.
Now, I have list which list which holds Customized Stock List.
At this point i want to display this Customized stock List under relevant stock data row.
I'had approached in design time and did the work,but thing is that [+] Symbol is appearing for all the rows. But i need for only those stock rows which has cutomized list.
I've approached this tutorial. But this is displaying [+] symbol for each row and not able to display relevant data, its displaying raw data.
Once Please look into the Issue.
Above Snippet for programatically adding the row.
In the above I'm binding the Detail Table View. But its now working properly. Kindly assist me in fixing.
I have a RadGridview, while displays stock data.
Now, I have list which list which holds Customized Stock List.
At this point i want to display this Customized stock List under relevant stock data row.
I'had approached in design time and did the work,but thing is that [+] Symbol is appearing for all the rows. But i need for only those stock rows which has cutomized list.
I've approached this tutorial. But this is displaying [+] symbol for each row and not able to display relevant data, its displaying raw data.
Once Please look into the Issue.
protected void AddDetailsTable() { GridTableView gvCylinderList = new GridTableView(gridMapModel); gvCylinderList.Name = "gvCylinderList"; gvCylinderList.AutoGenerateColumns = false; gridMapModel.MasterTableView.DetailTables.Add(gvCylinderList); GridBoundColumn clName = new GridBoundColumn(); clName.DataField = "Name"; clName.HeaderText = "Name"; gvCylinderList.Columns.Add(clName); gridMapModel.DetailTableDataBind+=new GridDetailTableDataBindEventHandler(gridMapModel_DetailTableDataBind); }Above Snippet for programatically adding the row.
protected void gridMapModel_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e) { GridDataItem item = (GridDataItem)e.DetailTableView.ParentItem; switch (e.DetailTableView.Name) { case "gvCylinderList": int mapModelId = Convert.ToInt32(item.GetDataKeyValue("MapModelId")); VesselService vs = new VesselService(); List<MapModelCylinder> lst = GetMapModelCylinderList(vs.GetMapModelsCylinder(mapModelId)); if (lst.Count > 0) { e.DetailTableView.DataSource = lst; } break; } }In the above I'm binding the Detail Table View. But its now working properly. Kindly assist me in fixing.