Skip to content

Code changes regarding the serialization and column drag drop temp UG. #3341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions MAUI/DataGrid/column-drag-and-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,33 @@ The SfDataGrid allows customizing the drag view text and background color using

<img alt="DataGrid column drag view background and text color" src="Images\column-drag-and-drop\maui-datagrid-drag-view-background-and-text-color.png" width="450"/>

### Column drag-and-drop template

The SfDataGrid allows you to load specific content into the column drag-and-drop template using the [SfDataGrid.ColumnDragDropTemplate](). The content can be provided through either a DataTemplate or a DataTemplateSelector.

The following code snippet demonstrates how to load a data template into the column drag-and-drop view:

{% tabs %}
{% highlight xaml %}

<syncfusion:SfDataGrid>
<syncfusion:SfDataGrid.ColumnDragDropTemplate>
<DataTemplate>
<Grid BackgroundColor="LightBlue">
<Label Text="Drag View"
TextColor="Orange"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center" />
</Grid>
</DataTemplate>
</syncfusion:SfDataGrid.ColumnDragDropTemplate>
</syncfusion:SfDataGrid>

{% endhighlight %}
{% endtabs %}

<img alt="Column drag and drop template" src="Images\column-drag-and-drop\maui-datagrid-column-drag-and-drop-template.gif" Width="404" />

## Cancel auto scrolling

Auto-scrolling during column dragging can be disabled using the `CanAutoScroll` argument in the `QueryColumnDragging` event.
Expand Down
Loading