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.

Getting the Row/Column index position of a deleted row

Thread ID:

Created:

Updated:

Platform:

Replies:

31231 Jul 4,2005 05:20 AM Jul 4,2005 05:50 AM Windows Forms 1
loading
Tags: GridControl
Thabo
Asked On July 4, 2005 05:20 AM

Hi, I am using a GridGroupingControl. One of the columns in my GGC has a checked dropdownlist. If i delete one row, i use the RecordDeleting event handler. How do i get the row index of the row i''m deleting and the Row/column index of the column that has the checked dropdownlist. Regards David

Administrator [Syncfusion]
Replied On July 4, 2005 05:50 AM

Do you want to know the index of the row to be deleted in the datasource? If so, try this call in the RecordDeleting event: int index = e.Record.GetSourceIndex(); To get the grid column index of any field, you can use: int field = this.gridGroupingControl1.TableDescriptor.NameToField("colName"); int gridIndex = this.gridGroupingControl1.TableDescriptor.FieldToColIndex(field);

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.

;