Hi George,
Thanks for contacting Syncfusion Support.
We have checked your query. Since we have applied background color for the rows, it will only reflects in the view even if you set background color for the grid. Hence, if you need to apply the transparent color to the grid then you can achieve it by applying background color to the grid records as in below code snippet.
//In code behind
dataGrid.GridStyle = new CustomGridStyle();
//CustomGridStyle class
public class CustomGridStyle : DataGridStyle
{
public override Color GetRecordBackgroundColor()
{
return Color.Transparent;
}
} |
If you want to show the custom column header instead of view model property as column header, then you can achieve it by setting GridTemplateColumn.HeaderText property as in below code snippet.
<syncfusion:GridTemplateColumn ColumnSizer="Auto"
HeaderText="CustomHeader"
MappingName="CustomerID"> |
If you set GridColumn.ColumnSizer property as “Auto”, then the column will be adjusted based on the large cell content whether the content is in header or in cell. The columns are adjusted properly based on the content loaded on our side.
We have prepared a sample as you required and you can download the same from the below link.
Regards,
Divakar.