How to change the row height according to the value in the cell for a dynamically designed cardview.
Trying to set up a GridBagLayout in code is very difficult. You would have to understand all of the GridBagLayout properties like SpanX, SPanY, OriginX, OriginY, PreferredWidth, PreferredHeight and how all of these interact with the grid's other properties such as the width of the column.
I would recommend that you set up the grid the way you want it in the designer and then save the grid's DisplayLayout to a file. You can do this by right-clicking the grid in the designer and selecting the Layout Wizard. Then load this layout at run-time. That will be a lot easier than trying to set up the layout in code.
If you want to try setting up the layout in code, then I would recommend reading up on the concept of a GridBagLayout. I'm sure there must be lots of information about this concept on the internet. :)
Hey mike,
now I made 2 projects and remade your step-by-step.At the first project I made it exactly like you.At the second project I did not made step 10 and 11.Cause in my personal project all looks like shitty crap ^^ if I do it like you said.I copied the Codes from these two project in "Winmerge" that I can see what changed.I noticed that the Ultrawingrid save some "Layouts" of the Band (All settings included).maybe that will be the rigth way I think?
Iam very frustrated about this grid :-(greetings marc
Hi mike,
thank you for your help!You explained it very nice! But Im programming only in the Code cause I dont trust some Help-Utilitys like the Designer.I want to see what iam changing ;-)Your demo is exactly what I need but for the Code :-)
Thanks anyway!I will try 2 more weeks maybe? :-)
greetings marc
Okay, here's a simple step-by-step way to do this. I just tried it out and it works.
My finished grid looks like this:
Hi Marc,
Are you trying to do this in code or in the Designer. In the RowLayout Designer, you should be able to just click and drag the bottom edge of the cell to increase the height.
Perhaps it would be easier if you contacted Infragistics Developer Support by phone and they could talk you through it.