Hi Team,
I am using web data grid in my application. In Grid, we have 3 columns. 1) Label 2) Dropdown and 3) Internal Grid,
Based on the dropdown selection, the data should change in the internal grid.
How can we add controls to internal grid dynamically?
For example: Add dropdown and text field controls to the internal grid.
Please let me know if you have any solution for this.
Regards,
Sravani
Hi elna
Can you send the same example but with webupload
I need to know in code behinde which row index was uploading file
My only event that fire is uploadfinished but i dont know which row was triger to upload file
Thanks
Shimon
Hi,
I have modified my sample in order to use CLR3.5. Would you please try to run it and if the issue is still representable with it please let me know.
Hello Sravani,
I have been looking into your scenario and I could suggest you use the SelectionChanged event of the DropDownProvider in order to set the data source of your nested WebDataGrid:
void EditorControl_SelectionChanged(object sender, Infragistics.Web.UI.ListControls.DropDownSelectionChangedEventArgs e) { DataTable dt = Session["ds"] as DataTable; selectedRow = (int)e.NewSelection; GridRecord r = WebDataGrid1.Behaviors.Selection.SelectedRows[0]; dt.Rows[r.Index]["Item"] =(int) e.NewSelection; WebDataGrid wdg = r.Items[2].FindControl("WebDataGrid2") as WebDataGrid; wdg.DataSource = MakeTable((int)e.NewSelection, (int)e.NewSelection + 3); wdg.DataBind(); Session["ds"] = dt; WebDataGrid1.RequestFullAsyncRender();
For additional reference you can check the attached sample.
Please let me know if this helps.
Hi Sravani,
Thank you for the snippets. I am currently working over your scenario. I will update you on my progress tomorrow.