Skip to content

Commit ab6a9d6

Browse files
committed
Review correction done.
1 parent cb768bf commit ab6a9d6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

MAUI/DataGrid/conditional-styling.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ public class ForeColorConverter : IValueConverter
390390

391391
![Conditional cell styling based on RowIndex and ColumnIndex in .NET MAUI DataGrid](Images/conditional-styling/maui-datagrid-conditional-datagridcelltyle_basedon_rowcolumnindex.png)
392392

393-
## Customizing Border Color for a Specific Cell in SfDataGrid
394-
You can apply styling to a specific cell in the SfDataGrid by targeting the DataGridCell and using the RowIndex and ColumnIndex properties along with the BorderColor property. This allows you to customize the appearance of individual cells, such as setting a unique border color. Additionally, you can customize the thickness of the border using the [GridLineStrokeThickness](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DataGridStyle.html#Syncfusion_Maui_DataGrid_DataGridStyle_GridLineStrokeThicknessProperty) property.
393+
### Customizing the BorderColor of a cell based on RowIndex and ColumnIndex
394+
You can customize the border color of individual cells in the SfDataGrid based on RowIndex and ColumnIndex property , and setting the `BorderColor` property in Datagridcell by writing the style for the [DataGridCell](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DataGridCell.html)
395395

396396
{% tabs %}
397397
{% highlight xaml tabtitle="MainPage.xaml" %}
@@ -410,10 +410,6 @@ You can apply styling to a specific cell in the SfDataGrid by targeting the Data
410410
<syncfusion:SfDataGrid x:Name="dataGrid"
411411
ItemsSource="{Binding OrderInfoCollection}"
412412
GridLinesVisibility="Both">
413-
414-
<syncfusion:SfDataGrid.DefaultStyle>
415-
<syncfusion:DataGridStyle GridLineStrokeThickness="5" />
416-
</syncfusion:SfDataGrid.DefaultStyle>
417413
</syncfusion:SfDataGrid>
418414
</Grid>
419415
</ContentPage.Content>
@@ -446,7 +442,7 @@ public class BorderColorConverter : IValueConverter
446442
{% endhighlight %}
447443
{% endtabs %}
448444

449-
![Conditional cell styling based on RowIndex and ColumnIndex in .NET MAUI DataGrid](Images/conditional-styling/maui-datagrid-conditional-datagridcelltyle_bordercolor_basedon_rowcolumnindex.png)
445+
![Customizing the BorderColor of a cell based on RowIndex and ColumnIndex in .NET MAUI DataGrid](Images/conditional-styling/maui-datagrid-customizing-bordercolor_basedon_rowcolumnindex.png)
450446

451447
## Style a cell based on cell value
452448
Styling can be applied to a particular cell based on CellValue property by writing the style for the [DataGridCell](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DataGridCell.html) TargetType.

0 commit comments

Comments
 (0)