Skip to content

Commit 6c5b47e

Browse files
Merge pull request #3578 from syncfusion-content/Maui-UG-Changes
Maui-[975367]- SfDataGrid UG Documentation Improvements.
2 parents cc4e2a5 + 9d69cf8 commit 6c5b47e

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

MAUI/DataGrid/Column-types.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,15 @@ You can customize the display of any column in the `SfDataGrid` by setting the [
138138
<syncfusion:SfDataGrid x:Name="dataGrid"
139139
ColumnWidthMode="Fill"
140140
ItemsSource="{Binding Orders}">
141-
<syncfusion:SfDataGrid.Columns>
141+
<syncfusion:SfDataGrid.Columns>
142+
<syncfusion:DataGridNumericColumn HeaderText="Order ID" MappingName="OrderID">
143+
<syncfusion:DataGridNumericColumn.CellTemplate>
144+
<DataTemplate>
145+
<Label Text="{Binding OrderID}" TextColor="Red" HorizontalOptions="Center" VerticalOptions="Center"/>
146+
</DataTemplate>
147+
</syncfusion:DataGridNumericColumn.CellTemplate>
148+
</syncfusion:DataGridNumericColumn>
149+
<syncfusion:DataGridTextColumn HeaderText="Customer Name" MappingName="CustomerName" />
142150
<syncfusion:DataGridNumericColumn HeaderText="Quantity" MappingName="Quantity" Width="150">
143151
<syncfusion:DataGridNumericColumn.CellTemplate>
144152
<DataTemplate>
@@ -198,6 +206,8 @@ In the following example, a custom DataTemplateSelector is used to apply differe
198206
<syncfusion:DataGridNumericColumn HeaderText="Order ID"
199207
MappingName="OrderID"
200208
CellTemplate="{StaticResource OrderTemplateSelector}"/>
209+
<syncfusion:DataGridTextColumn HeaderText="Customer ID" MappingName="CustomerID" />
210+
<syncfusion:DataGridTextColumn HeaderText="Customer Name" MappingName="CustomerName"/>
201211
</syncfusion:SfDataGrid.Columns>
202212
</syncfusion:SfDataGrid>
203213
{% endhighlight %}
@@ -249,6 +259,7 @@ public class CustomCellTemplateSelector : DataTemplateSelector
249259
MappingName="OrderID"
250260
SetCellBoundValue="True"
251261
CellTemplate="{StaticResource cellTemplate}"/>
262+
<syncfusion:DataGridTextColumn HeaderText="Customer ID" MappingName="CustomerID" />
252263
<syncfusion:DataGridTextColumn HeaderText="Customer Name"
253264
MappingName="CustomerName"
254265
SetCellBoundValue="True"
@@ -260,7 +271,8 @@ public class CustomCellTemplateSelector : DataTemplateSelector
260271

261272
<img alt="CellTemplate" src="Images\column-types\maui-datagrid-CellTemplate-Reusable.png" width="404"/>
262273

263-
N> `CellTemplate` is not supported by `DataGridCheckboxColumn`, `DataGridImageColumn` and `DataGridUnboundColumn` columns. When using complex templates, consider the impact on scrolling performance with large datasets.
274+
N>
275+
`CellTemplate` is not supported by `DataGridCheckboxColumn`, `DataGridImageColumn` and `DataGridUnboundColumn` columns. When using complex templates, consider the impact on scrolling performance with large datasets.
264276

265277
### TextAlignment
266278

MAUI/DataGrid/filtering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The records can be filtered based on any of the following conditions:
5555
* Does not equal
5656
* Contains
5757

58-
The above mentioned conditions are the mostly used conditions. Add new conditions and alter the following code samples based on your requiremen
58+
The above mentioned conditions are the mostly used conditions. Add new conditions and alter the following code samples based on your requirement.
5959

6060
{% tabs %}
6161
{% highlight c# %}

MAUI/DataGrid/search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ this.dataGrid.SearchController.Search(entry.Text);
3838
<img alt="Enabling Filter based on Search in DataGrid" src="Images\search\maui-datagrid-search-filtering.png" width="404"/>
3939

4040

41-
You can search the data with the case-sensitivity by setting [SearchController.AllowCaseSensitiveSearch](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DataGridSearchController.html#Syncfusion_Maui_DataGrid_DataGridSearchController_AllowCaseSensitive) property.
41+
You can search the data with the case-sensitivity by setting [SearchController.AllowCaseSensitive](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DataGridSearchController.html#Syncfusion_Maui_DataGrid_DataGridSearchController_AllowCaseSensitive) property.
4242

4343
{% tabs %}
4444
{% highlight c# %}
4545

46-
this.dataGrid.SearchController.AllowCaseSensitiveSearch = true;
46+
this.dataGrid.SearchController.AllowCaseSensitive = true;
4747

4848
{% endhighlight %}
4949
{% endtabs %}

0 commit comments

Comments
 (0)