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

getting a row pos

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon