Programmatically select next row in an UtraGrid
New DiscussionHi,
I’m trying to select the next row in an UtraGrid from outside the control.
So I have created a class MyUltraGrid derived from the original UltraGrid and added the following method
public void SelectNextRow()
{
if (this.ActiveRow == null)
{
return;
}
var nextIndex = this.ActiveRow.Index + 1;
if (nextIndex < this.Rows.Count)
{
this.Selected.Rows.Clear();
this.Rows[nextIndex].Selected = true;
this.Rows[nextIndex].Activated = true;
}
}
This works well. But it doesn´t work if I use a GroupByRow.
Can anyone give me a hint how to achieve the “select next row” functionality in a GroupByRow scenario?
I would like to achieve the same behavior which happens if I hit key up / down right inside the UltraGrid.
greetings
Andre
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
1 Created On
Apr 17, 2017 Last Post
9 years, 3 months ago