PDA

View Full Version : auto scrolling the scroll bar?



suresh22446688
17 May 2012, 2:42 AM
Hi,
I am using Normal Grid. how can i scroll the vertical scroll bar to a specified row in the grid?


Thanks!

Ersmarker
17 May 2012, 3:09 AM
You can create a custom LiveGridView with this function.


class MyLiveGridView extends LiveGridView {
public void scrollToRow(int row) {
liveScroller.setScrollTop(getCalculatedRowHeight() * row);
}
}

suresh22446688
17 May 2012, 4:13 AM
Thanks! it is working fine..