Skip to content

MAUI - UG document for missing properties of master details view in SfDataGrid #3367

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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion MAUI/DataGrid/empty-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ control: SfDataGrid
documentation: UG
---

# EmptyView in MAUI DataGrid (SfDataGrid)
# Empty view in MAUI DataGrid (SfDataGrid)

The [SfDataGrid](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html) provides options to display and customize an empty view when no data is available to display using the following properties,

Expand Down
40 changes: 40 additions & 0 deletions MAUI/DataGrid/master-details-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,46 @@ this.dataGrid.CollapseDetailsViewAt(0);
{% endhighlight %}
{% endtabs %}

## Hide Empty Grid Definitions

By default, the expander will be visible for all the data rows in parent DataGrid even if its [RelationalColumn](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.ViewDefinition.html#Syncfusion_Maui_DataGrid_ViewDefinition_RelationalColumn) property has an empty collection or null.

Setting the [HideEmptyDataGridViewDefinition]() property to `true` will hide the expander from the view when the respective `RelationalColumn` property contains an empty collection or null.

{% tabs %}
{% highlight xaml %}
<syncfusion:SfDataGrid x:Name="dataGrid"
AutoGenerateRelations="False"
ItemsSource="{Binding Employees}"
HideEmptyDataGridViewDefinition="True">
</syncfusion:SfDataGrid>
{% endhighlight %}
{% highlight c# %}
dataGrid.HideEmptyDataGridViewDefinition = true;
{% endhighlight %}
{% endtabs %}

<img alt="Hiding-empty-DetailsView-DataGrid" src="Images/master-details-view/maui-datagrid-HideEmptyDataGridViewDefinition.png" width="404"/>

## Hide Indent Cells in Details view

By default the indent cell of details view `SfDataGrid` is always displayed. You can hide the indent cell by setting [ShowDetailsViewIndentCell]() property to `false` for the corresponding parent DataGrid. The default value of `ShowDetailsViewIndentCell` property is `true`.

{% tabs %}
{% highlight xaml %}
<syncfusion:SfDataGrid x:Name="dataGrid"
AutoGenerateRelations="False"
ItemsSource="{Binding Employees}"
ShowDetailsViewIndentCell="False">
</syncfusion:SfDataGrid>
{% endhighlight %}
{% highlight c# %}
dataGrid.ShowDetailsViewIndentCell = false;
{% endhighlight %}
{% endtabs %}

<img alt="Hiding-DetailsView-IndentCell" src="Images/master-details-view/maui-datagrid-ShowDetailsViewIndentCell.png" width="404"/>

## Handling Events

### DetailsViewLoading
Expand Down