Hello together,
since today I am currently facing a strange problem using UltraGrid.The Grid is bound to a LinQ DataSource and always displayed perfectly in designer and when running the programm.
The task was to attach an EventHandler (InitializeRow) in order to make rows bold if a certain condition is true. So far so good, everything worked as expected, the event fired and the mentioned rows turned bold.
But suddenly I got the grid displayed two times (the second one appeared on the right side). It was exactly the same grid, even the row selections went syncroniously, just like looking into a mirror.
I played with docking and anchors and then decided to remove the grid and placed a new one onto my form in order to replace it to get rid of the second grid.
That worked, but now the InitializeRow event doesn't fire anymore...All other events are fired as expected (AfterRowActivate, DoubleClick)
Any ideas are highly appreciated ;)
kind regards
Andy
I was able to track the event problem... at least it dissappeared after rebooting my machine.
Anyway, the "Ghosting Grid Problem" still remains.Is there any explanantion for such a behavior?I would be very interested in finding out why this happened and how to fix/prevent it :)kind regardsAndy
Hi Andy,
It sounds to me like something in the form designer has gotten corrupted and your grid now has a couple of ColScrollRegions. So you probably just need to grab the splitter in between the two regions all the way to the left to remove it - if it shows up at design-time.
Thanks a ton Mike, I already tried to pull the splitter to the right (I assumed the right grid was the ghost grid), but it end up in docking/anchor problems.Pulling it to the left might do the trick, I'll give it a try.
have a nice day,best regardsAndy
If that doesn't work, you might just want to delve into the form designer code and look for ColScrollRegions.Add and remove that code. Be careful, though - back up the file first, just in case. :)
Hi Mike,your suggestion worked like a charm ;)Thanks again for your help,
kind regardsAndy