示例#1
0
 private static void DataGrid_QueryColumnDragging(object sender, QueryColumnDraggingEventArgs e)
 {
     if (e.Reason == QueryColumnDraggingReason.Dropped)
     {
         SfDataGrid grid        = sender as SfDataGrid;
         string     savedParams = string.Empty;
         SaveParameters(grid, out savedParams);
         if (!string.IsNullOrEmpty(savedParams))
         {
             LoadParameters(grid, savedParams);
         }
     }
 }
示例#2
0
 private static void DataGrid_QueryColumnDragging(object sender, QueryColumnDraggingEventArgs e)
 {
     if (e.Reason == QueryColumnDraggingReason.Dropped)
     {
         SfDataGrid grid        = sender as SfDataGrid;
         var        combinePath = Path.Combine(_gridOptionPath, "GridOptions_" + grid.Name + ".xml");
         using (var file = File.Create(combinePath))
         {
             SerializationOptions options = new SerializationOptions();
             grid.Serialize(file, options);
         }
     }
 }