we use FixedHeaderIndicatorDefault="Button" for sorting, some columns will be un-editable with the Gainsboro color, some editable columns will be white color.
when we click the column header in the program for sorting, the clicked column will be moved to the first of the grid, the former columns will each move to the next, the strang thing is some of the columns color will changed to unexcepted one.
for example, there are A, B, C column in 1,2,3 place, A, C is Gainsboro, B is white, when click the C, it will move to the 1 place, and A, B will move to 2, 3 places, however the A's color is white, B's color changed to Gainsboro
some of the displaylayout setting are as follows,
<DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnClient" AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name="dgdTrimResponse" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeRowDefault="Single" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False" CellClickActionDefault="Edit" FixedHeaderIndicatorDefault="Button" UseFixedHeaders="True">
Hi wobudongta,
I have created a sample for you using the Northwind DB where the column being sorted is moved to first position in the grid. The display layout settings that you have provided have been employed and the HeaderStyle has been used to modify the colors of the headers for each column.
Regarding your second question, you can use the ColumnHeaderClickHandler client-side event in order to handle header mouse clicks.
Please tell me if this helps.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
Please do not hesitate to contact me if you continue to experience any issues.