Hi, I want to scroll a record to the top row of the grid. I can use GridGroupingControl.TableControl.ScrollIntoView(record), but this just scrolls the record into view, and doesn''t necessarily scroll it to the top of the viewable area. If the record cannot be scrolled to the top because the records do not fill the display area, then that''s okay. How would I implement this? Thanks.
AD
Administrator
Syncfusion Team
June 23, 2006 07:02 PM UTC
Hi Stephen,
Try this code to set the record as top view record. Here is a code snippet.
int Index = this.gridGroupingControl1.Table.DisplayElements.IndexOf(record);
this.gridGroupingControl1.TableControl.TopRowIndex = Index;
Let me know if this helps.
Best Regards,
Haneef
ST
Stephen
June 23, 2006 10:44 PM UTC
That doesn''t seem to work for some reason.
AD
Administrator
Syncfusion Team
June 23, 2006 11:59 PM UTC
Hi Stephen,
Sorry, I am not able to reproduce the mentioned issue. Attached is a sample that works fine with out any error in the mentioned scenario. Can please reproduce the issue in the attached sample and sent it back so that we can get back with a solution at the earliest?
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/NesteTable_f5f2e224.zip
Let me know if this helps.
Best Regards,
Haneef
ST
Stephen
June 24, 2006 12:44 AM UTC
Ok, it seems to work. Sorry about that. Thanks!