i have a grid with dynamic controls in it
how to get the webdata grid values when the values of controls inside the grid change.
Hello,
What controls do you have in the grid and are they in a template field or are they assigned as editor providers?
In the first case, you would use:
DropDownList DDL = WbDtGrdAppVersion.Rows.FromKey(key).Items[0].FindControl("DDL") as DropDownList;
and then get the value from DDL.
In the second case you should be able to get the value from the cell if you have exited the editor provider, or through its value property if you have not.
yeah its created as editor provider. i have 3 controls like
1. drop down list
2. date time Picker
3. check box
is there any way to assign the webdata grid value to a data set.
i have a code like this
lds_StaticGrid = (DataSet)lwdg_static.DataSource; //lds_StaticGrid--data set
//lwdg_static ---grid
got it
Hello aravind,
I am not absolutely sure what your final goal is, so I am attaching a small sample project that I hope to be demonstrating what you want.
Please review it and let me know if it suits your needs.
hello mr. boris
just forget the control, Let me know how to assign a web data grid data source value to a data set
give me clear idea on it.
hello sir
we can assign a data set value to grid data source
but how to reverse the process
by assigning a grid data source to a dataset.
pls give guidance on that issue
thank you.....
sir,
i have button click event
protected void lbl_addfund_Click(object sender, EventArgs e) { DataSet lds_StaticGrid = (DataSet)Session["dsStaticGrid"]; lds_StaticGrid.Tables[0].Rows.Add(lds_StaticGrid.Tables[0].NewRow());
lds_StaticGrid = (DataSet)lwdg_static.DataSource; // i am gettting null at here. Session["dsStaticGrid"] = lds_StaticGrid; LoadStaticGrid(); }
thanks & regards.
k. aravind