End Edit Row event

Hi,

 Exist a event when a row in datagrid in edit mode(pencil) to end edit.
 I need save the row in database when all changes are maded, not in cell value changed

Thanks a lot

6 Replies

AA Arulraj A Syncfusion Team August 30, 2018 11:07 AM UTC

Hi Ruben, 

Thanks for using Syncfusion product. 

To get the event after row editing completed, you could use the Changed action in SourceListRecordChanged event. Please refer the following code example and the sample, 
 
Code example 
this.gridGroupingControl1.SourceListRecordChanged += GridGroupingControl1_SourceListRecordChanged; 
 
private void GridGroupingControl1_SourceListRecordChanged(object sender, Syncfusion.Grouping.RecordChangedEventArgs e) 
{ 
    if (e.Action == Syncfusion.Grouping.RecordChangedType.Changed) 
    { 
        //Make your implementation 
    } 
 
} 
 

Arulraj A 



RU Ruben August 30, 2018 03:54 PM UTC

Thanks for the reply, works fine





AA Arulraj A Syncfusion Team August 31, 2018 05:54 AM UTC

Hi Ruben,  
 
We are glad to know that the problem has been resolved at your end. Please let us know if you have any further queries on this, we are happy to help you.  
 
Regards,  
Arulraj A 



RU Ruben August 31, 2018 12:59 PM UTC

Hi,

 One question, in a row when the user press enter key the SourceListRecordChanged fire first than KeyDown, it´s posible cancel the sourcelistrecordchanged?.

Thanks







RU Ruben replied to Arulraj A September 3, 2018 08:08 AM UTC

Hi Ruben, 

Thanks for using Syncfusion product. 

To get the event after row editing completed, you could use the Changed action in SourceListRecordChanged event. Please refer the following code example and the sample, 
 
Code example 
this.gridGroupingControl1.SourceListRecordChanged += GridGroupingControl1_SourceListRecordChanged; 
 
private void GridGroupingControl1_SourceListRecordChanged(object sender, Syncfusion.Grouping.RecordChangedEventArgs e) 
{ 
    if (e.Action == Syncfusion.Grouping.RecordChangedType.Changed) 
    { 
        //Make your implementation 
    } 
 
} 
 

Arulraj A 


Hi,

 When the Datasource of GGC it´s asigned to a binding source(mysql entity), for each value changed in row  make one call to SourceListRecordChanged, Is it normal operation?

Thanks?


AA Arulraj A Syncfusion Team September 3, 2018 12:11 PM UTC

Hi Ruben, 
 
Thanks for your update 
 
Query 
Response 
One question, in a row when the user press enter key the SourceListRecordChanged fire first than KeyDown, it´s posible cancel the sourcelistrecordchanged? 
To avoid the record updating while pressing the enter key, you could handle the enter key behaviors using WantEnterKey property. Please refer to the following code example, 

Code example 
this.gridGroupingControl1.TableControl.WantEnterKey = false; 
 When the Datasource of GGC it´s assigned to a binding source(mysql entity), for each value changed in row  make one call to SourceListRecordChanged, Is it normal operation? 
Yes, SourceListRecordChanged event trigger after that completing the row editing. This is the behavior of this SourceListRecordChanged event. 

To need the event support while changing the every cell value, you could use the RecordValueChanged event. Please refer the following code example, 

Code example 
this.gridGroupingControl1.Table.RecordValueChanged += Table_RecordValueChanged;  
 
private void Table_RecordValueChanged(object sender, Syncfusion.Grouping.RecordValueChangedEventArgs e) 
{ 
     //Make your implementation      
} 


Arulraj A 


Loader.
Up arrow icon