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
close icon

Row selection

Hi! I have a datasource representation on a form, using different controls (a treeview and a GridDataBoundGrid). What I would like to know is how to select a Row in the grid based on the selected node in the tree and ensure it is visible. Thank you!

3 Replies

AD Administrator Syncfusion Team February 24, 2003 09:03 AM UTC

Hi Serban, I assume that when you click in the tree at that time you know the record position in the underlying datasource. Based on that information you can get the row index with int rowIndex = grid.Binder.ListManagerPositionToRowIndex(record); and then scroll this row into view grid.ScrollCellInView(rowIndex, 1); - or - move the current cell to that row: grid.CurrentCell.MoveTo(rowIndex, 1); Stefan


SA Serban Alexandru Florian February 24, 2003 01:39 PM UTC

Thank you !


SS Silviu Saulea June 6, 2003 07:49 AM UTC

Hei Alexandre please write to me at los_calibra@yahoo.com - in romaneste - ce ai inteles din explicatie! :) Daca ai YM contacteaza-ma sunt online! Multumesc anticipat!

Loader.
Live Chat Icon For mobile
Up arrow icon