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.

No subject

Thread ID:

Created:

Updated:

Platform:

Replies:

4646 May 22,2003 10:35 AM May 22,2003 03:17 PM Windows Forms 1
loading
Tags: GridControl
Ramu
Asked On May 22, 2003 10:35 AM

Hi, I am using GDBG. I use the following code to delete a row, when the user double clicks on the grid. but its not deleting the first row or the last added row. DataTable table = (DataTable) syfGrid.DataSource; int curRowIndex = syfGrid.CurrentCell.RowIndex; if (syfGrid.Model.RowCount > 1 && curRowIndex > 0 && syfGrid.Model.RowCount > curRowIndex ) { int recNumber = syfGrid.Binder.RowIndexToPosition(curRowIndex); syfGrid.Binder.RemoveRecords(recNumber, recNumber); } else { Console.WriteLine("No More rows / CurCell is not set"); } Pls throw a light onthis. Many Thx Ram

Administrator [Syncfusion]
Replied On May 22, 2003 03:17 PM

Try calling syfGrid.Binder.EndEdit() before you execute the code. If you own the source code version, you can step into the syfGrid.Binder.RemoveRecords call to see why the deleting is failing.

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.

;