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

Scroll / set focus to cell

Thread ID:





32480 Aug 2,2005 06:07 AM UTC Aug 2,2005 09:05 AM UTC WinForms 1
Tags: GridControl
Rene Balvert
Asked On August 2, 2005 06:07 AM UTC

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

Administrator [Syncfusion]
Replied On 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.


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