Multi Row Record Insertion Not Available

Hai,
     SfDatagrid Control not allowing Mulitple Row Record Insertion.
     More column to design the sfdatagrid mean it's look screen size too big. 
     
     Kindly do the needful.



Attachment: Screen_f31fb7b5.rar

1 Reply 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team January 25, 2021 04:01 PM UTC

Hi Rangarajan,

Thanks for using Syncfusion products.

 
Based on provided information your requirement of adding multiple record at once you need to add the record via button click. Please refer the below code snippet, 
private void button1_Click(object sender, EventArgs e) 
{ 
      //Insert multiple record via button click 
      viewModel.Orders.Insert(1,new OrderInfo(1007, "Thomas Hardy", "UK", "AROUT", "London", true)); 
      viewModel.Orders.Insert(2,new OrderInfo(1008, "Christina Berglund", "Sweden", "BERGS", "Lula", false)); 
      viewModel.Orders.Insert(3, new OrderInfo(1009, "Antonio Moreno", "Mexico", "ANTON", "Mexico", true)); 
       sfDataGrid.DataSource = viewModel.Orders;            
} 

Please let us know, if you require further assistance on this.

Regards,
Vijayarasan S
 


Marked as answer
Loader.
Up arrow icon