You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/datagrid/cell.md
+4-28Lines changed: 4 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,33 +9,9 @@ documentation: ug
9
9
10
10
# Cell in Blazor DataGrid
11
11
12
-
In the Syncfusion<supstyle="font-size:70%">®</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<supstyle="font-size:70%">®</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.
13
13
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.
@@ -147,7 +123,7 @@ The auto wrap feature in the Syncfusion<sup style="font-size:70%">®</sup> Bl
147
123
148
124
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.
149
125
150
-
Set the `WrapMode` property in `TextWrapSettings` to one of these values:
126
+
Set the **WrapMode** property in `TextWrapSettings` to one of these values:
151
127
152
128
***Both** - Wraps text in both header and content cells. This is the default value.
153
129
***Header** - Wraps text only in header cells.
@@ -270,7 +246,7 @@ Cell customization can be achieved through these approaches:
270
246
271
247
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.
272
248
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.
0 commit comments