Hi All
I want add UltraGridColumn in to UltraGridGroup at Runtime but after add UltraGridGroup into UltraGrid then All column auto hide. I try set Hide property is false but column not show. I want solution this problem. Thanks very much.
Hello,
When you add groups, you are creating a new layout for the grid. By not adding the columns to a group, you don't add them to the layout. If you want the remaining 4 columns to appear in the end as they would appear normally, you can add them to group3, and align them on the same level e.g:
group3.Columns.Add(band.Columns["column1"], 0, 0);
group3.Columns.Add(band.Columns["column2"], 1, 0);
group3.Columns.Add(band.Columns["column3"], 2, 0);
group3.Columns.Add(band.Columns["column4"], 3, 0);
Or to any level of another group, choice is yours.
Should you have any further questions, please let me know.
Sincerely,
Tihomir TonevAssociate Software DeveloperInfragistics
Thanks to Tihomir Tonev for the reply. I have 10 columns and I want to add 3 columns to group 1 and 3 columns to group 2 and the remaining 4 columns do not add to any group. But when I add 2 groups to the grid, the remaining 4 columns are hidden. And I want the remaining 4 columns to be visible.
Thank you for posting on our forums.
Do you create and add the new column to the grid before you add it to the group?
I have created a sample where I add a column to a group on a button click. Please check the sample and let me know if you have any further questions.
UltraWingGridGroups.zip