AspBucket offers ASP.NET, C#, VB, Jquery, CSS, Ajax, SQL tutorials. It is the best place for programmers to learn

Tuesday 3 November 2015

What is the Maximum Limit of Display Column in Obout Grid ?

I already give this solution on many sites like stack overflow & Obout website . So I am explaining again on my blog.
This is a limitation of the standard Unit class: "The Unit class can represent values only between -32768 and 32767." So you need to make sure that the sum of all the columns' widths is smaller than 32767. The default width of a Column is 175px, so if you auto generate the columns you will be able to use up to 187 columns. If the columns are auto generated, you can reduce the width of the columns using the ColumnsCreated event: If the columns are manually defined using the Columns collection simply set a smaller width for some of them.


Post a Comment

  • Popular Posts
  • Comments