Skip to content

Commit 0cee41c

Browse files
984957: Updated the UG content and samples for Cell in Blazor DataGrid
1 parent 27b8d7b commit 0cee41c

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

blazor/datagrid/cell.md

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,9 @@ documentation: ug
99

1010
# Cell in Blazor DataGrid
1111

12-
In the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid, a cell represents a single unit of data at the intersection of a row and a column. Each cell displays specific content associated with its corresponding data record and column definition. Cells can contain text, numbers, or templated content, depending on the configuration.
12+
In Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid, a cell is a single data unit formed at the intersection of a row and a column. Each cell displays content based on its data record and column settings. Depending on configuration, cells can show text, numbers, or custom templated content.
1313

14-
The DataGrid provides extensive options to customize the appearance and behavior of cells. These include:
15-
16-
**Template rendering**
17-
18-
Define custom layouts using [Template](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_Template), [EditTemplate](https://blazor.syncfusion.com/documentation/datagrid/template-editing), or [DetailTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridTemplates.html#Syncfusion_Blazor_Grids_GridTemplates_DetailTemplate) properties to display rich content such as images, buttons, or formatted text.
19-
20-
**Value formatting**
21-
22-
Use the [Format](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_Format) property to apply numeric, currency, date, or custom formats to cell values.
23-
24-
**Editing behavior**
25-
26-
Enable or disable editing for specific cells using the [AllowEditing](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_AllowEditing) property in the column definition.
27-
28-
**Conditional styling**
29-
30-
Apply styles dynamically based on cell value or row context using the [QueryCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEvents-1.html#Syncfusion_Blazor_Grids_GridEvents_1_QueryCellInfo) or [RowDataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEvents-1.html#Syncfusion_Blazor_Grids_GridEvents_1_RowDataBound) events.
31-
32-
**Tooltip and Alignment**
33-
34-
Configure [TextAlign](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_TextAlign), [ClipMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_ClipMode), and [Tooltip](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_ShowTooltip) properties to control text alignment and overflow behavior.
35-
36-
**Interactive features**
37-
38-
Include clickable elements, **dropdowns**, or **checkboxes** within cells to support interactive workflows.
14+
The Grid offers extensive options to customize cell appearance and functionality. Templates can be applied, cell values can be formatted, editing can be enabled or disabled, and various operations can be performed to build interactive and visually informative data grids for web applications.
3915

4016
{% youtube "youtube:https://www.youtube.com/watch?v=6H90a5tz7bE"%}
4117

@@ -147,7 +123,7 @@ The auto wrap feature in the Syncfusion<sup style="font-size:70%">&reg;</sup> Bl
147123

148124
Enable auto wrap by setting the [AllowTextWrap](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_AllowTextWrap) property to **true**. Configure the wrapping behavior using the [TextWrapSettings.WrapMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartSeries.html#Syncfusion_Blazor_Charts_ChartSeries_Type) property.
149125

150-
Set the `WrapMode` property in `TextWrapSettings` to one of these values:
126+
Set the **WrapMode** property in `TextWrapSettings` to one of these values:
151127

152128
* **Both** - Wraps text in both header and content cells. This is the default value.
153129
* **Header** - Wraps text only in header cells.
@@ -270,7 +246,7 @@ Cell customization can be achieved through these approaches:
270246

271247
To customize the appearance of cells, use the [QueryCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEvents-1.html#Syncfusion_Blazor_Grids_GridEvents_1_QueryCellInfo) event. This event is triggered during the rendering of each cell and provides access to cell-specific information.
272248

273-
In this configuration, a check is performed to determine whether the current column is the **Freight** field, and a CSS class is applied based on the cell value.
249+
In this setup, the column is checked to confirm if it corresponds to the **Freight** field, and a CSS class is applied based on the cell’s value.
274250

275251
{% tabs %}
276252
{% highlight razor tabtitle="Index.razor" %}

0 commit comments

Comments
 (0)