The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
When I am calculating the width a column needs to be in a Syncfusion.Windows.Forms.Grid.GridControl, I am using the width of the GridControl / NumberOfColumns I want. The problem is that depending on the number of rows, I may or may not have a scroll bar, and if I do have a scroll bar I need to know how to get its width so that I can take it in to consideration
i.e ColWidth = (GridWidth - ScrollBarWidth) / NoOfColumns
Can anyone tell me how to get a GridControls scrollbar width please?
ADAdministrator Syncfusion Team July 11, 2004 05:43 AM UTC
Try using this.gridControl1.ClientSize.Width to get your ''GridWidth''. This property should give you the proper width whether or not there is a scrollbar present.