I have syncfusion grid data control( ID, name, address, contact number,.....). When I drag and drop column headers, I save the column names into database
private void grid_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
var rowColIndex = this.grid.Model.Grid.PointToCellRowColumnIndex(e);
DragHeaderText = Convert.ToString(this.grid.Model[rowColIndex.RowIndex, rowColIndex.ColumnIndex].CellValue);
}
private void grid_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
var rowColIndex = this.grid.Model.Grid.PointToCellRowColumnIndex(e);
TargetHeaderText = Convert.ToString(this.grid.Model[0, rowColIndex.ColumnIndex].CellValue);
}
if DragHeaderText and TargetHeaderText are not the same, I save into database in order to get the sequence column headers. It is working fine.
The main problem is when I resize the column headers(name), DragHeaderText is showing name but TargetHeaderText is showing address. So it saves into database without changing the column header. Could you please advice me how to get the resized column name in DragHeaderText and TargetHeaderText when I resize the column headers?
Thank you