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
75
UpdateCell - e.Cell.Row.Index
posted

I have a small page which holds a UltraWebGrid. DataSource of the grid is bound to a DataTable which is created at runtime.

Binding the DataTable to the Grid works just fine. Now I would like to reflect my updates of the grid to my DataTable.

I've read an article on the devcenter which says to use the "UpdateCell" or "UpdateRow" events to make sure the changes are reflected to the DataTable (or any source actually).

Since my DataTable does not hold a real usable Primary Key I'm trying to update my rows using the rowindex. For some reason the "e.Cell.Rows.Index" is always -1 when I debug my code.

I must be missing something here...

Any comments are appreciated.

Parents
No Data
Reply
  • 75
    Verified Answer
    posted
    I completely looked over the fact that my ultrawebgrid was being bound to the datasource in the Page_Load w/o using "If (!Page.IsPostBack)"... causing the problem. Although this does not really relate directly to the fact that the changed cell row index is -1 (or at least it doesn't to me) it did solve the problem I was having...
Children
No Data