I have an Image column on my WinGrid and it's acting strangely. My WinGrid has an UltraDataSource and when I set my column to a bitmap, it appears correctly. However, when i select each row by clicking on the Image column, it automatically multi selects (acting as if I have the CTRL key down). When i change my code so that a string is placed in the Image column instead, it acts as it should. Any suggestions?
I've never heard of that happening before, and I can't see why the Image column would make any difference. Can you post a small sample project demonstrating this?
I've been able to reproduce the odd behavior by copying the grid over to a sample project. I think it has something to do with the Grid's properties, but I can't figure out why it's just happening for the image column.
Attached is the sample project, it's in vb.net 2008 Using 8.2.20082.2011version of:
Shared
Win.UltraWinDataSource
Win.UltraWinGrid
Win
Please let me know if you need anything else.
It looks like the key to this is these two lines of code:
Me.ultragrid1.DisplayLayout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.None Me.ultragrid1.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended
This looks like a bug to me. There's no reason why setting SelectTypeCell to None should cause the rows to stay seleted instead of getting cleared when you click on another image.
I'm going to foward this thread to Infragistics Developer Support so they can have someone look at it.
Thanks for looking into this, Mike.