Hi Mohammad Abbasi,
Thanks for contacting Syncfusion support.
From your query, we understand that you want to update the Grid columns
dynamically. If yes, you can achieve your requirement by setting the grid.columns
property and call the “refreshColumns” method. Please refer to the below
code example and the sample link for more information.
|
click() {
this.grid.columns = newColumns;
this.grid.refreshColumns();
}
|
https://stackblitz.com/edit/angular-yxy8nz?file=app.component.ts
Please get back to us if you need further assistance on this.
Regards,
Pavithra S