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
570
Set Value during InitializeRow (default values)
posted

I'm trying to set default values in the WebDataGrid if the Cell is null or does not contain a value.  I am trying to do this check in the WebDataGrid InitializeRow server-side event, however, do not have a method for setting the value of a particular cell.  Is the data bound at this point ?  If so, what is the command I should use to set the value.

  • 19308
    posted

    The WebDataGrid acts as a view on top of a model.  In this case the model is your underlying data.  Rather than editing the data through the grid, you should edit it through your data tier.  So insetad of trying to set a grid cell's value, you should be setting the value in your underlying datasource.