First of all I'd just like to say that I'm very new to Infragistics (only been using it for about a week actually), so I apologise if this is very simple but I'd appreciate the help!
Basically I'm struggling to find an option to switch off multiple row selection in my UltraGrid.
I only noticed this as I've added buttons to my form to allow my user to navigate Next/Prev/First/Last within the grid. When you navigate using the buttons, all is fine and works as you'd expect. Then if you select another row using a mouse click (without holding any keys etc), and go back to using the Next/Prev/First/Last buttons to navigate the row you selected with the mouse is still highlighted. So you end up with two rows highlighted when only one of them is actually active.
As I say, apologies if it's a very simple fix but I've spent ages running through as many of the Properties as I could find but couldn't find any option that sounded relevant to my problem.
Hello,
If you mean that you would like to have only ActiveRowAppearance than you could disable the SelectedAppearances like the following in the InitalizeLayout event :
void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e) {
e.Layout.Override.SelectedAppearancesEnabled = DefaultableBoolean.False;
}
If you just want to be able to select one row at a time than you probably should set the following in the same event:
e.Layout.Override.SelectTypeRow = SelectType.Single;
Please let me know if I misunderstood your scenario.
Hi Danko,
Thanks for your quick response. Unfortunately I forgot to mention that I'm actually only using v9.1 of UltraWinGrid. This means that I don't actually have either SelectedAppearancesEnabled, nor SelectType, so I can't do as you've instructed.
Is there any other way of me solving this using only v9.1?
What is the error that you are seeing when trying to use "Infragistics.Win.UltraWinGrid.SelectType.Single" ? About the SelectedAppearanceEnabled, they are annouced in 9.2 if I can recall correctly. If it is all about the appearance you always could set the selected appearace at row level throught the following:
e.Layout.Override.SelectedRowAppearance... and set desired back/fore colors.
If I am missing something from your scenario please let me know.
The error message that I get is 'Unable to understand after -- "Win.UltraWinGrid".'.
I'm not sure whether it's important but I'm actually using OpenEdge Architect for my code development and I wonder whether that is actually restricting the Infragistics Assemblies in some way?
Hi,
I am facing a strange problem with ultrawingrid.
My application demads only one row should selected at a time.
Everything is fine until when I hold a click on any of row header/selector and release it on the another row. Then after if any of the row is selected, the new and the old(stated in above scenario) row are getting selected which is not expected.
Please direct me.
Thanks,
Ganesh
Hello Ganesh,
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.
Thanks a lot...Borris..u exactly provided the solution which i wanted.. thanks...man!!