Category / Section
How to change the Layout of the OlapGrid
1 min read
We can able to change the layout of the OlapGrid control. This can be achieved by using the GridLayout Property of OlapGrid. Please refer the below code snippet to know how to set this property.
C#
public MainWindow() { try { ViewModel.ViewModel.ConnectionString = this.GetConnectionString(); InitializeComponent(); this.olapGrid1.Layout = Syncfusion.Olap.Engine.GridLayout.ExcelLikeLayout; } catch (Exception ex) { ShowExceptionMessage(ex); } }
Figure: OlapGrid with ExcelLikeLayout