Hi,Recently I'm using winGrid and got two questions.1)I got a mutil-line header grid, with the first header line "Date" and the second header line "morning", "noon" and "night".And I want to implement this effect: when I click the header "Date", all the columns will be selected.e.g ①"morning" is checked, When I click the header "Date", and the column "morning" should be selected.
②"morning" and "noon" are checked, When I click the header "Date", and all the column "morning", "noon" should be selected.
③"morning", "noon" and "night" are checked, When I click the header "Date", and all the column "morning", "noon" and "night" should be selected.
Is it possible to implement this effect?
2)"morning", "noon" and "night" are checked,And when I drag the "Date" column, only the last column "night" 's width is changed. That's same with the Title column.
Is there something that I'm missing?
I've attach my code. Could you please help me with these two questions?Thanks for your concern.
Hi Richard,
Thank you for posting in our forums.
You can use groups instead of RowLayouts and both of these issues will be resolved. When you click the group header all the columns in the group will be selected and when you resize the group its columns will be also resized. Using groups you can also remove the “Date” and“Title” columns from your data source. For more information on groups please visit this link:
http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/Infragistics2.Win.UltraWinGrid.v12.1~Infragistics.Win.UltraWinGrid.UltraGridGroup.html
I have modified the sample in order to demonstrate this approach.
Please let me know if you have any additional questions.