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 Row/Column index position of a deleted row

Thread ID:





31231 Jul 4,2005 09:20 AM UTC Jul 4,2005 09:50 AM UTC WinForms 1
Tags: GridControl
Asked On July 4, 2005 09:20 AM UTC

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 09:50 AM UTC

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);


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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