This is a migrated thread and some comments may be shown as answers.

AddNewRow

3 Answers 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brandy
Top achievements
Rank 1
Brandy asked on 06 Mar 2018, 10:50 PM

     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

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 07 Mar 2018, 10:52 AM
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.
0
Brandy
Top achievements
Rank 1
answered on 07 Mar 2018, 03:59 PM

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

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

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

0
Dimitar
Telerik team
answered on 08 Mar 2018, 07:32 AM
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.
Tags
GridView
Asked by
Brandy
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Brandy
Top achievements
Rank 1
Share this question
or