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
but i get the grid (lwdg_static) value as null.
This means that you don't have the control created in this exact moment.
When are you calling this code?
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.
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.