AddNewRow

4 posts, 0 answers
  1. Brandy
    Brandy avatar
    4 posts
    Member since:
    Dec 2016

    Posted 06 Mar 2018 Link to this post

         I need to capture the row the user is adding so I can send it (or others) back to the database for insert.  I have not tried the inline editing yet.
    I'm using WinForms.

    I've tried the following to capture when the user is done adding (Enter Key) with zero results:
    void radGridViewActiveSchedules_UserAddedRow(object sender, GridViewRowEventArgs e)
    void radGridViewActiveSchedules_DefaultValuesNeeded(object sender, GridViewRowEventArgs e)
    void radGridViewActiveSchedules_CellBeginEdit(object sender, GridViewCellCancelEventHandler e)

    What am I missing

  2. Dimitar
    Admin
    Dimitar avatar
    2684 posts

    Posted 07 Mar 2018 Link to this post

    Hi Brandy,

    To track any changes and update the data use the RowsChanged event. Detailed information is available here: Tracking changes in RadGridView.

    Let me know how this works for you.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Brandy
    Brandy avatar
    4 posts
    Member since:
    Dec 2016

    Posted 07 Mar 2018 in reply to Dimitar Link to this post

    What do I need to add to the designer?  Nothing is generating.

    Everything I've tried, I get 'No overload' error.  

    this.radgridview.RowsChanged += ?????

  4. Dimitar
    Admin
    Dimitar avatar
    2684 posts

    Posted 08 Mar 2018 Link to this post

    Hello Brandy,

    Here is the code:
    radGridView1.RowsChanged += RadGridView1_RowsChanged;
       
    private void RadGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
    {
        
    }

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top