Hi, in my grid, I need 3 types of column moving behaviors:
1. Umoveable - the column starts as fixed and cannot be moved at all, anywhere.2. Restricted to Fixed - the column starts as fixed and can be moved to anywhere in the fixed region ONLY. It cannot be unfixed.3. Restricted to Unfixed - the column starts out as unfixed, cannot be fixed, and can move only within the unfixed region.
What can I do to implement the first two behaviors? (The third one I can do).
As a side note, I couldn't find a space dedicated to the XamGrid to post this since you redesigned the forum, am I missing something? Also, the "Tags" function doesn't seem to work anymore, and the option for making numbered or bulleted lists doesn't render in the final post.
HI,
Please let me know if you need further assistance regarding this case.
Sincerely,
Matt Developer Support Engineer
In your 2nd senario, you can wire up the ColumnFixedStateChanging Event and cancel the fixedStateChange for a particular coloumn.
Here a code snippet:private void xgrid1_ColumnFixedStateChanging(object sender, Infragistics.Controls.Grids.CancellableColumnFixedStateEventArgs e) { if (e.Column.Key == "Age") { e.Cancel = true; } }
As far as restricting the movement of this column, you could use the same alorithym you used your 3Rd senario.
Sincerely, MattDeveloper Support Engineer
Your first senario can be addressed by setting Column's IsMovable Propertyl to false. http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=InfragisticsWPF4.Controls.Grids.XamGrid.v12.1~Infragistics.Controls.Grids.Column~IsMovable.html