BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Gary,
Thank you for choosing Syncfusion Controls.
We have analysed your query, if you set AutoGenerateColumns as true, then the Grid will populate the columns automatically according to the Data present in the Model and HeaderText will also be automatically set to the GridColumns. If you want to set the HeaderText as per your desire then you need to define the GridColumns as in the below code snippet.
Code Snippet [Xaml]:
<syncfusion:SfDataGrid.Columns> <syncfusion:GridTextColumn HeaderText="ID" MappingName="EmployeeId" /> <syncfusion:GridTextColumn HeaderText="Name" MappingName="EmployeeName" /> <syncfusion:GridTextColumn HeaderText="Title" MappingName="EmployeeDesignation" /> </syncfusion:SfDataGrid.Columns> |
Please let us know if you need further assistance.
Regards,
Prakash S.
Hi Gary,
We have analysed your query. You can achieve your requirement by setting true/false to IsHidden property in GridColumns. Please refer the following code snippet.
Code Snippet [C#]:
<syncfusion:SfDataGrid.Columns> <syncfusion:GridTextColumn HeaderText="Id" IsHidden="False" MappingName="EmployeeId" /> <syncfusion:GridTextColumn HeaderText="Name" IsHidden="True" MappingName="EmployeeName" /> <syncfusion:GridTextColumn HeaderText="Title" IsHidden="False" MappingName="EmployeeDesignation" /> </syncfusion:SfDataGrid.Columns> |
Please let us know if you need further assistance.
Regards,
Prakash S.