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
580
Update value in cell in Grid.ActiveRow
posted

I have an app that you double click on a row in a grid and it brings up an editor to enter/edit date and time worked.  The grid is populated via a generic list as it's datasource.  After the user edits the time and closes the form, the code to refresh the time cell in the orginal grid does not update.  Below is one of the code samples I have tried.

 ultraGrid1.ActiveRow.Cells[7].Activation = Activation.AllowEdit;

 ultraGrid1.ActiveRow.Cells[7].Activate();

ultraGrid1.ActiveRow.Cells[7].Value = row.TimeSpan.ToString();

 

What am I missing?

Parents
No Data
Reply
  • 1315
    Suggested Answer
    posted

    What is the data type of column you want to update?

    I tried to assign string value to the string type column and Datetime value to Datetime type using your code and it worked fine.

    But when you assign string to datetime type column it gives error.

     

Children