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
540
Copying one column to another
posted

Hi

In a bound grid, when one column is edited by the user I need its value to be copied to another column of the grid. How can I achieve this?

Thanks

Regards

PS: Actually I will be changing the value slightly before assigning it to the second column but for simplicity I am skipping this in my question.

Parents
No Data
Reply
  • 17259
    Offline posted

    Use the CellChange event. Check that e.Cell.Column.Key is the right one and write:

    e.Cell.Rows.Cells[copyToColumnName].Value = e.Cell.Value

Children