How to remove Current Record

Hi everyone !

I have problem when deactive ( remove or leave ) current record. How can i remove current record when i leave GGC.

Please help me.

Thank you for reading and helping me!

1 Reply

AR Arulpriya Ramalingam Syncfusion Team February 6, 2018 05:29 AM UTC

Hi Truong,   
 
Thanks for contacting Syncfusion support.   
 
In order to remove/delete the current record, the Delete () method of GridCurrentRecord can be used. Please refer to the below code and sample, 
 
Code example   
 
private void deleteBtn_Click(object sender, EventArgs e)   
{   
    if(gridGroupingControl1.Table.CurrentRecord != null)   
    {   
        //To delete the current record   
        gridGroupingControl1.Table.CurrentRecord.Delete();   
    }   
}   
 
   
Note   
Please let us know your exact requirement with simple screenshot/video, if we misunderstood your requirement. Also, provide the error/exception details with stack trace, if any.   
   
Regards,   
Arulpriya  


Loader.
Up arrow icon