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