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
565
Adding a checkeditor to the Ultragrid
posted

Hi Guys,

I am trying to add a user accessible checkeditor in a ultragrid and its value should be recorded to the database table column when it is checked/unchecked.

The existing grid where I need to add is binded to a datasource X and I have added a column to accept the value of the checkeditor to the table that is associated with X. The column does appear in the grid without issues but the values are not updated to the datasource.

Guide me to add a checkeditor in the ultragrid and successfully update it to the database.

Thanks

Preeth

  • 29105
    Offline posted

    Hello,

    I am following up to ask whether or not if you have any additional questions with adding a check editor to the UltraWinGrid? If so, please let us know so we can assist you further. Thank you and have a nice day.

  • 469350
    Suggested Answer
    Offline posted

    Hi Preeth,

    The Wingrid binds and works with the local DataSource, which is typically a DataSet or DataTable (or perhaps a BindingSource that wraps one of those). The grid has no interaction with the DataBase on the back end.So if you are asking how to propagate the changes from your DataSet/Datatable back to the data base, you would be better off seeking assistance or documentation from Microsoft on how do to that.

    If you are asking how to propagate changes in the grid back to the DataSource, then you don't really need to do anything. This happens automatically for any field in the grid. There's nothing different or special about a checkbox column.

    Changes in the grid are committed to the DataSource when you either move out of the row or cell, or when the grid loses focus. This behavior can be changed by the UpdateMode property.

    You can always force a manual commit by calling Update on the row, or UpdateData on the grid to update all pending changes from all rows.