PC Review


Reply
Thread Tools Rate Thread

Datagrid Scrolling

 
 
Charlie Farrier
Guest
Posts: n/a
 
      6th Oct 2003
In a Forms Datagrid, how do I scroll in code to a row that
is not currently visible, to bring it into view?
 
Reply With Quote
 
 
 
 
Kirk
Guest
Posts: n/a
 
      6th Oct 2003

use the CurrentRowIndex property of the Datagrid.
This will select the row and scroll the grid to show the row.

"Charlie Farrier" <(E-Mail Removed)> wrote in message
news:0b3301c38c20$6f245500$(E-Mail Removed)...
> In a Forms Datagrid, how do I scroll in code to a row that
> is not currently visible, to bring it into view?



 
Reply With Quote
 
Charlie Farrier
Guest
Posts: n/a
 
      6th Oct 2003
Thanks.

I now realize the reason it was not working for me was
that the Datagrid was set to ReadOnly. For some reason,
in that state, the DataGrid scrolls to the top after
setting the CurrentRowIndex. The "cursor" of the datagrid
is on the correct record, however.


>-----Original Message-----
>
>use the CurrentRowIndex property of the Datagrid.
>This will select the row and scroll the grid to show the

row.
>
>"Charlie Farrier" <(E-Mail Removed)> wrote in message
>news:0b3301c38c20$6f245500$(E-Mail Removed)...
>> In a Forms Datagrid, how do I scroll in code to a row

that
>> is not currently visible, to bring it into view?

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrolling DataGrid Wasco Microsoft ASP .NET 1 14th Dec 2005 12:16 PM
scrolling datagrid =?Utf-8?B?SGFucyBbRGlhR3JhcGhJVF0=?= Microsoft C# .NET 3 6th Dec 2004 05:53 PM
scrolling in datagrid =?Utf-8?B?UGVyY3k=?= Microsoft Dot NET Compact Framework 1 12th Nov 2004 07:56 AM
datagrid scrolling...capturihng rows displayed in view of datagrid Patrick Microsoft Dot NET Framework Forms 3 7th Jun 2004 11:07 AM
Scrolling a DataGrid =?Utf-8?B?QW1qYWQ=?= Microsoft VB .NET 2 13th May 2004 02:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 AM.