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).
ADAdministrator Syncfusion Team August 2, 2005 04:05 AM
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.