Hi once again,
I need help on changing the default header row color of SfDataGrid. I looked over the properties of
SfDataGrid but I didn'nt find anything related to colors.
Thanks in advance.
|
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Syncfusion Flutter DataGrid'),
),
body: SfDataGridTheme(
data:SfDataGridThemeData(
headerColor: Colors.red[200]
),
child: SfDataGrid(
source: employeeDataSource,
columnWidthMode: ColumnWidthMode.fill,
columns: _column
),
),
);
} |
Very useful, as always. Thank you very much guys!
Hello, I know that this is an old ticket, but I just wanna know how to change specific header color. Like if I want the first column header to be red, and the second column to be green. Is that possible?
We have considered your request as a feature. We will implement this feature in any of our upcoming releases. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.
You can also communicate with us regarding the open features any time using our Feature Report page.
Feedback link: https://www.syncfusion.com/feedback/47936/support-for-setting-custom-text-for-datapager-static-labels
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.