?
Solved

Infragistics UltraWinGrid: Sort Question

Posted on 2006-11-17
2
Medium Priority
?
3,076 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 1500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 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