diff --git a/apps/st/src/components/module/CompactDataGrid.tsx b/apps/st/src/components/module/CompactDataGrid.tsx index 04f7cc0b0..4377eb762 100644 --- a/apps/st/src/components/module/CompactDataGrid.tsx +++ b/apps/st/src/components/module/CompactDataGrid.tsx @@ -178,6 +178,7 @@ const CompactDataGrid = ({ columnInfo, fixedColumns, showHeaderCheckbox = false, editable: col.editable, valueType: col.valueType, dataFormat: col.dataFormat, + ...(col.styleName != null && { styleName: col.styleName }), ...(col.mergeCells && { mergeRule: { criteria: 'value' as const } }), }; diff --git a/apps/st/src/components/module/DataGrid.tsx b/apps/st/src/components/module/DataGrid.tsx index ebab75ca8..cdf0e286d 100644 --- a/apps/st/src/components/module/DataGrid.tsx +++ b/apps/st/src/components/module/DataGrid.tsx @@ -591,6 +591,7 @@ const DataGrid = ({ columnInfo, rowStartNum, isExcelImport = true, isExcelExport editable: col.editable, valueType: col.valueType, dataFormat: col.dataFormat, + ...(col.styleName != null && { styleName: col.styleName }), ...(col.mergeCells && { mergeRule: { criteria: 'value' as const } }), }; diff --git a/apps/st/src/components/module/TabDataGrid.tsx b/apps/st/src/components/module/TabDataGrid.tsx index 0a6fc37b9..16c0680be 100644 --- a/apps/st/src/components/module/TabDataGrid.tsx +++ b/apps/st/src/components/module/TabDataGrid.tsx @@ -793,6 +793,7 @@ const TabDataGrid = ({ columnInfo, isExcelImport = true, isExcelExport = true, r editable: col.editable, valueType: col.valueType, dataFormat: col.dataFormat, + ...(col.styleName != null && { styleName: col.styleName }), ...(col.mergeCells && { mergeRule: { criteria: 'value' as const } }), }; diff --git a/apps/st/src/components/type/DataGrid.type.ts b/apps/st/src/components/type/DataGrid.type.ts index efaccaf0d..4d31facbe 100644 --- a/apps/st/src/components/type/DataGrid.type.ts +++ b/apps/st/src/components/type/DataGrid.type.ts @@ -10,6 +10,7 @@ export type RealGridColumnInfo = { editable?: boolean; valueType?: import("realgrid").ValueType; dataFormat?: string; + styleName?: string; mergeRule?: { criteria: 'value' }; footer?: { text?: string;