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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting the column value before deleting a row.

Thread ID:

Created:

Updated:

Platform:

Replies:

17387 Aug 7,2004 06:38 AM UTC Aug 7,2004 11:32 AM UTC WinForms 3
loading
Tags: GridControl
arvind
Asked On August 7, 2004 06:38 AM UTC

Hai , I am using GridDataBound Grid.I have a grid where the datasource is a dataTable.I am deleting couple of rows from the grid ,I want to capture the Column value of the deleting row.Can u please help me out in this. Thanks , Arvind H.C.

Administrator [Syncfusion]
Replied On August 7, 2004 07:34 AM UTC

I am not sure what you mena by the column value for a row that is being deleted. I assume there are likely several columns in teh row you want to delete. You can use the RowsDeleting event to be notified that rows are about to be deleted. The event args have From and To properties that tell you the range of rows being deleted. So, if rowIndex points to a row in this range, and colIndex is some column for which you want the value, you can use this.grid[rowIndex, colIndex].CellValue to retrieve the value of that cell.

arvind
Replied On August 7, 2004 08:55 AM UTC

The row which I am going to has multiple columns and one hidden Column ,I want the value of the hidden column of that row that is deleted >I am not sure what you mena by the column value for a row that is being deleted. I assume there are likely several columns in teh row you want to delete. > >You can use the RowsDeleting event to be notified that rows are about to be deleted. The event args have From and To properties that tell you the range of rows being deleted. So, if rowIndex points to a row in this range, and colIndex is some column for which you want the value, you can use this.grid[rowIndex, colIndex].CellValue to retrieve the value of that cell.

Administrator [Syncfusion]
Replied On August 7, 2004 11:32 AM UTC

You would use grid[rowIndex, hiddenColIndex].CellValue to retrieve the value of the hidden column.

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.

Warning Icon 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.Close Icon

;