Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Infragistics UltraWinGrid: Sort Question

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

604 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