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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

getting a row pos

Thread ID:





24209 Jan 30,2005 11:41 PM UTC Jan 31,2005 06:37 AM UTC WinForms 1
Tags: GridControl
Asked On January 30, 2005 11:41 PM UTC

Hi, In a dataBoundDataGrid, is there any anyway to get the row position (i.e the row index) given the cell value and its column index without having to loop through the Grid Thanks

Administrator [Syncfusion]
Replied On January 31, 2005 06:37 AM UTC

The fastest way to do it would be to find the value directly in the datasource (skipping the grid entirely). The reason is that if you use teh grid to look for teh value, the grid has to retrieve it from your datasource. Doing all teh work in the datasource cuts out all this look it work (and teh associated events) in the grid. That said the grid does support a Find/Replace functionality. Here are a couple of forum threads on Find. The first has a minimal sample using the grid''''s default Find/Replace support. The second has a from-scratch Find implemenation. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=14572 http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=8286


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon