Gridview which events to use

3 posts, 0 answers
  1. Geoff
    Geoff avatar
    8 posts
    Member since:
    Jan 2015

    Posted 12 May Link to this post

    I do not normally work on the desktop and I am really struggling with the grid view.

    I have a number of basic maintenace forms that have a grid on them. I thought I would see if I code manage with the add, update an delet buttons by using the grids bulit in functions but I cannot get my head round which way I should be going.


    I have an ubound grid which I am loading from a list of custom objects. I am loading it unbound so I can use the built in drag drop to re order the items.

    I am handling the delete in RowsChanging so I can validate the process and cancel if required, this seems to work but if this is not good please advise?

    I was trying to to deal with the add and update in RowsChanging and Rows Changed but I have run into all sort of issues so I guess this is the wrong approach.

    If anyone some guidance on this I would be very grateful.







  2. Geoff
    Geoff avatar
    8 posts
    Member since:
    Jan 2015

    Posted 13 May in reply to Geoff Link to this post

    DOH! Please disregard this, I was thinking about it all wrong!

    I have now figured it out and it works a treat.

  3. DevCraft banner
  4. Hristo Merdjanov
    Hristo Merdjanov avatar
    674 posts

    Posted 16 May Link to this post

    Hi Geoff,

    Thank you for writing.

    Suitable places to perform the validation before adding and deleting rows are the UserAddingRow and UserDeletingRow events. Additional information is available in the following documentation resources:
    I hope this helps. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top