Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
how to assign a webdata grid value to a dataset in code behind?
posted

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.

Parents
No Data
Reply
  • 71886
    Offline posted

    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.

Children