Skip to content

Commit a0b67fd

Browse files
committed
Adding Appearence topic
1 parent 62fe5e8 commit a0b67fd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

MAUI/DataGrid/Column-types.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,36 @@ private void dataGrid_CurrentCellRequestNavigating(object sender, DataGridCurren
14811481
{% endhighlight %}
14821482
{% endtabs %}
14831483

1484+
## Appearence
1485+
1486+
### HyperlinkTextColor
1487+
1488+
You can set the hyperlink text color using the HyperlinkTextColor property. If both HyperlinkTextColor and a DataGridCell TextColor (via implicit or explicit styles) are defined, HyperlinkTextColor takes precedence and will be used. If HyperlinkTextColor is not specified, the implicit or explicit cell styles will determine the hyperlink text color.
1489+
1490+
{% tabs %}
1491+
{% highlight xaml %}
1492+
1493+
<syncfusion:SfDataGrid x:Name="dataGrid"
1494+
AutoGenerateColumnsMode="None"
1495+
ItemsSource="{Binding OrderInfoCollection}">
1496+
<syncfusion:SfDataGrid.DefaultStyle>
1497+
<syncfusion:DataGridStyle HyperlinkTextColor="Yellow"/>
1498+
</syncfusion:SfDataGrid.DefaultStyle>
1499+
</syncfusion:SfDataGrid>
1500+
1501+
{% endhighlight %}
1502+
1503+
{% highlight c# %}
1504+
DataGridHyperlinkColumn hyperlinkColumn = new DataGridHyperlinkColumn()
1505+
{
1506+
MappingName = "Country",
1507+
HeaderText = "Country",
1508+
};
1509+
dataGrid.Columns.Add(hyperlinkColumn);
1510+
1511+
{% endhighlight %}
1512+
{% endtabs %}
1513+
14841514
## Row header
14851515

14861516
The row header is a type of column that is placed as the first cell of each row and remains frozen. To enable the row header, set [SfDataGrid.ShowRowHeader](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_ShowRowHeader) to `true` Additionally, the `SfDataGrid` allows you to customize the row header width using the [SfDataGrid.RowHeaderWidth](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_RowHeaderWidth) property. The default value is `30.`

0 commit comments

Comments
 (0)