AddNewRow with some Default Value?

Is there any way to have some default values in the AddNewRow's ItemArray whenever I try to add a new row inside sfdatagrid.


2 Replies 1 reply marked as answer

SG shankul gupta December 30, 2020 08:12 AM UTC

I just had to set the NullDisplayText property to some value I wanted to get displayed while creating a new row.

Edit: NullDisplayText is just a placeholder text for representing a null or empty cell. I want that cell have a specified value inside it. 


SJ Sathiyathanam Jeyakumar Syncfusion Team December 31, 2020 02:25 PM UTC

Hi Shankul, 
 
You can set the default value for AddNewRowCell by using AddNewRowInitiatingEvent. Please refer the below UG link for more information. 
 
 
Regards, 
Sathiyathanam

Marked as answer
Loader.
Up arrow icon