PC Review


Reply
Thread Tools Rate Thread

datagrid sorting , scroll to top

 
 
dee
Guest
Posts: n/a
 
      8th Dec 2003
Hi,

After sorting the datagrid is it possible to then scroll to the top ,
so the first row is showing. The reason is so if sorting by price, i
can see the lowest straight away without manually scrolling every
time.TIA

David
 
Reply With Quote
 
 
 
 
Michael Wong
Guest
Posts: n/a
 
      8th Dec 2003
You may try:

yourGrid.CurrentRowIndex = 0;

"dee" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> After sorting the datagrid is it possible to then scroll to the top ,
> so the first row is showing. The reason is so if sorting by price, i
> can see the lowest straight away without manually scrolling every
> time.TIA
>
> David



 
Reply With Quote
 
dee
Guest
Posts: n/a
 
      9th Dec 2003
Hi,

Yes ive tried this, when i apply it on mouseup it gets lost by the
sort, the sort happens after the mousedown event. Is there another
event i can apply it to?

David


"Michael Wong" <(E-Mail Removed)> wrote in message news:<eR7Y$(E-Mail Removed)>...
> You may try:
>
> yourGrid.CurrentRowIndex = 0;
>
> "dee" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > After sorting the datagrid is it possible to then scroll to the top ,
> > so the first row is showing. The reason is so if sorting by price, i
> > can see the lowest straight away without manually scrolling every
> > time.TIA
> >
> > David

 
Reply With Quote
 
Michael Wong
Guest
Posts: n/a
 
      9th Dec 2003
How do you sort your grid? By clicking on the header? Or programmatically?

"dee" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Yes ive tried this, when i apply it on mouseup it gets lost by the
> sort, the sort happens after the mousedown event. Is there another
> event i can apply it to?
>
> David
>
>
> "Michael Wong" <(E-Mail Removed)> wrote in message

news:<eR7Y$(E-Mail Removed)>...
> > You may try:
> >
> > yourGrid.CurrentRowIndex = 0;
> >
> > "dee" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > After sorting the datagrid is it possible to then scroll to the top ,
> > > so the first row is showing. The reason is so if sorting by price, i
> > > can see the lowest straight away without manually scrolling every
> > > time.TIA
> > >
> > > David



 
Reply With Quote
 
dee
Guest
Posts: n/a
 
      10th Dec 2003
Both

"Michael Wong" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> How do you sort your grid? By clicking on the header? Or programmatically?
>
> "dee" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Yes ive tried this, when i apply it on mouseup it gets lost by the
> > sort, the sort happens after the mousedown event. Is there another
> > event i can apply it to?
> >
> > David
> >
> >
> > "Michael Wong" <(E-Mail Removed)> wrote in message

> news:<eR7Y$(E-Mail Removed)>...
> > > You may try:
> > >
> > > yourGrid.CurrentRowIndex = 0;
> > >
> > > "dee" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Hi,
> > > >
> > > > After sorting the datagrid is it possible to then scroll to the top ,
> > > > so the first row is showing. The reason is so if sorting by price, i
> > > > can see the lowest straight away without manually scrolling every
> > > > time.TIA
> > > >
> > > > David

 
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
How to scroll two datagrid with one scroll bar newbie Microsoft C# .NET 0 8th Jan 2007 07:20 PM
How do you map DataGrid rows to it's DataSource when sorting a DataGrid? aualias Microsoft Dot NET Framework Forms 2 13th Sep 2005 07:09 PM
No sorting event available when sorting DataGrid columns!!! =?Utf-8?B?TmFk?= Microsoft Dot NET Framework Forms 2 21st Apr 2005 03:47 PM
Re: scroll datagrid Grant Smith Microsoft VB .NET 0 11th Jan 2005 08:45 PM
DataGrid within scrollbar/Header must not scroll/Sorting on asc and desc VSK Microsoft ASP .NET 1 21st Oct 2003 06:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:00 AM.