We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grid Row adding

Hi, I am having GDBG. its completely editable. there are 4 columns and user will not be able to go to another new row without providing the values for 4 columns. i tried programatically, but couldnt acheive what i thought of. also i am trying to remove a row from the grid. but its saying no record at position 0 eventhough there are 4 rows in the grid. thanks in advance for helping me to coume out of this issue. Ram

1 Reply

AD Administrator Syncfusion Team May 21, 2003 08:43 PM UTC

For the first task (no empty cells), handle the RowLeave event, and check each of the 4 values to see if one is empty. If it is, set e.Cancel = true to abort the RowLeave. To remove a record, try using grid.Binder.RemoveRecords method.

Live Chat Icon For mobile
Up arrow icon