Posted 22 June 2022, 6:58 pm EST
Hi,
Thanks for reaching out to us with your query.
- You can get the dragged column position by handling DraggedColumn event:
private void Dragged_Column(object sender, C1.WPF.FlexGrid.CellRangeEventArgs e)
{
MessageBox.Show("Dragged Position: " + e.Column);
}
- You can set display order of column by setting Display.Order DataAnnotattions on bounded property in Model as:
public class Product
{
[Display(Order =2)]
public int Id { get; set; }
[Display(Order = 1)]
public string Name { get; set; }
[Display(Order = 3)]
public double Price { get; set; }
}
Please refer the attached sample for the same: CustomColumns.zip
Best Regards,
Nitin