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

Scroll / set focus to cell

Hi, We are using the grid unbound and adding rows from our application. When the last row(s) do not fit in the grid we want to focus the last row to ensure it is visible. Because there is no mouse with up/down key we can scroll thrue the item. How can we set some row visible? How can we detect some row is not visible (when scrolling up)? We are not using the ListBoxSelectionMode because this shows the selected cell and we always want a full row selection. Is there some way to prevent this? (We are now selecting the cells when moving up/down). Regards, Rene

1 Reply

AD Administrator Syncfusion Team August 2, 2005 09:05 AM UTC

1) The grid.ScrollCellInView method allows you to croll a cell into view. 2) You can get the last visible row using the grid.ViewLayout.LastVisibleRow property. 3) If the grid is not editable, the simplest thing to do is to use the ListBoxSelectionMode but also handle grid.CurrentCellActivating and set e.ColIndex = 0 in the handler. This will prevent the current cell from showing differently.

Live Chat Icon For mobile
Up arrow icon