Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
WebGrid Columns
posted

Is there a limitation on the number of columns you can have in a WebGrid?

 

 

  • 45049
    Verified Answer
    posted

    WebGrid indexes are stored as an int (System.Integer32) data type.  Theoretically, this means that you can have up to 2,147,483,648 columns in your grid.

    In practice, you should limit the number of columns you include.  More columns means more data, which eventually means slower performance.  Also, after a certain point, extra columns simply become "noise" to your users, rather than presenting useful information.  There's no hard-and-fast limit to either of these points, since these will vary greatly depending upon the needs of your application and the system resources available to both your client and server computers.