Solved

Infragistics UltraWinGrid: Sort Question

Posted on 2006-11-17
2
3,069 Views
Last Modified: 2012-05-05
I am using Infragistics UltraWinGrid v3.1

How can I set the ActiveRow to the first row in the grid after it has been sorted?  When I first display the grid I set the first row to the ActiveRow using
grdResults.ActiveRow = grdResults.GetRow(ChildRow.First);

Once the grid has been sorted this no longer works as the row is the first row in the dataset but not the sorted gird.  Any help is appreciated!
0
Comment
Question by:thespiceman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 500 total points
ID: 17968857
I'm not sure but it should be something like this :

grdResults.ActiveRow = grdResults.Rows[0];
0
 

Author Comment

by:thespiceman
ID: 17969148
The code works but it needs the following additional code...

private void InitializeComponent()
{
...
this.grdResults.AfterSortChange += new Infragistics.Win.UltraWinGrid.BandEventHandler(this.grdResults_AfterSortChange);
...
}
                  
private void grdResults_AfterSortChange(object sender, Infragistics.Win.UltraWinGrid.BandEventArgs e)
{
       grdResults.ActiveRow = grdResults.Rows[0];
}

Also this code works
grdResults.ActiveRow = grdResults.GetRow(ChildRow.First);
but I didn't have it in the "AfterSortChange" event handler.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VS 2013 installer,  Install, Update and uninstall via SCCM 6 54
asp.net repeater 2 35
C# Change the instruction to user. 11 39
How do I "share" on social sites? 2 37
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question