Hi everyone, first time poster here so please go easy on me.
I have a problem with a child row which is using CardView with TextAlign set to HAlign.Right and Autofit set to true. Everything works fine unless the grid is too small to display the contents of the grid, the vertical scroll bar appears and only part of the card is visible. Once this happens lots of events seem to cause the text in the Card to scroll to the right. MouseOver the card, click on the scroll bar, release the scroll bar, click on the card, etc, and with each event the text scrolls to the right and disappears from view. If i set the text alignment to left then everything works great, but we'd prefer not to do this if possible. I was wondering if anybody had any ideas, maybe it's a simple setting that I'm missing?
Here's the code just to give you an idea of what I'm about. You can see I've created a custom dataset just to keep things simple. Any help anybody could offer would be greatly appreciated.
Thanks in advance,
Dave
private DataSet1 ds = new DataSet1();public Form1(){ InitializeComponent(); this.Width = 300; this.Height = 300; this.ultraGrid1.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(ultraGrid1_InitializeLayout); DataSet1.DataTable1Row Row1 = ds.DataTable1.AddDataTable1Row("test1", "test2"); ds.DataTable3.AddDataTable3Row(Row1, "3Test1xxxxxxx", "3Test2xxxxxxxx", "3Test3xxxxxxxxx", "3Test4xxxxxxx", "3Test5xxxxxxxxxxxxxxxxxx"); this.ultraGrid1.DataSource = ds; this.ultraGrid1.Rows.ExpandAll(true);}void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.Bands[1].Columns["3Test1"].Layout.Appearance.TextHAlign = HAlign.Right; e.Layout.Bands[1].CardView = true; e.Layout.Bands[1].CardSettings.AutoFit = true; e.Layout.Bands[1].CardSettings.Style = CardStyle.StandardLabels; e.Layout.Bands[1].CardSettings.ShowCaption = true; e.Layout.Bands[1].CardSettings.CardScrollbars = CardScrollbars.None; e.Layout.Bands[1].CardSettings.LabelWidth = 120; e.Layout.Bands[1].CardSettings.MaxCardAreaCols = 1; e.Layout.Bands[1].CardSettings.MaxCardAreaRows = 1;}
Hi Dave,
There's definately something weird going on here. It seem to work okay once you resize the form, so it looks like the initial display is somehow corrupted and the elements are not positioned correctly.
There is a service release available for v9.2, but I tested it out and the problem still occurs.
I'm going to forward this thread over to Infragistics Developer Support so they can report this as a bug and get it looked at.
I downloaded the latest and greatest version (I think?) of Infragistics for WinForms, version 9.2, and I still have the problem. Are there any hotfixes available that I could try?
Thanks again.
Hi Mike, thanks for the reply.
Yeah, all you need to do is move your mouse over the grid and the data starts to disappear. My manager is out so I can't get the latest update, but I'll try it on Monday when they're back. I'd be surprised if it's fixed tho, as I check with the 5.2 version of Infragistics and I get the same problem (we're currently using 8.2). I've uploaded a small sample project that hopefully will show you the problem in action. All you should have to do is run it, and then just put your mouse over the grid.
Thanks again,
Are you saying that simply moving the mouse over the cell is causing the text to continuously shift? If that's the the case, then it's clearly a bug. I'm pretty sure that something like that was recently fixed.
Do you have the latest service release?
How to get the latest service release - Infragistics Community
If that doesn't help, then see if you can duplicate the problem in a small sample project and post it here and we will be happy to take a look at it.