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.
Unfortunately, activation email could not send to your email. Please try again.

Allow Grid Row Add and Delete

Thread ID:

Created:

Updated:

Platform:

Replies:

78341 Dec 9,2008 03:27 PM Dec 9,2008 03:44 PM WPF 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 9, 2008 03:27 PM

Maybe i am just missing it, but how do you set the grid to allow new rows to be added and current rows to be deleted, by the user?


Administrator [Syncfusion]
Replied On December 9, 2008 03:44 PM

There are methods/properties that allow you to insert, delete or add rows to a GridControl.

//insert
grid.Model.insertRows(startRow, count);

//delete
grid.model.RemoveRows(startRow, count);

//add a row
grid.Model.ColumnCount += 1;


There is no UI exposed to add a new row or to delete a row. In the upcoming Vol 1, 2009 release, we will support databinding, and that will include supporting a AddNew record and being able to delete records.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;