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
250
Grid Datasource keeps Crashing Visual studio 2008
posted

Hi. I am evaluating your product. Everytime I try to add a datasoucre to your grid (using the property windows of VS and selecting a class in another project) visual studio stops responding. Is this a known issue ?

Is there a fix for this ?

 

Thanks

Parents
No Data
Reply
  • 45049
    posted

    What's the nature of the data source you're binding to?

    It's a shot-in-the-dark, but I suspect that your data source may be self-referential in some way.  In other words, if it's a DataSet, it contains a DataTable that relates (directly or indirectly) back to itself.  If it's a business object, it contains child lists that (directly or indirectly) have the same datatype.  If this is the case, then the grid is trying to figure out how deep the hierarchy goes, until it finds the end of the hierarchy (which is never) or hits its MaxBandDepth.  This property is set off the DisplayLayout.MaxBandDepth property, which defaults to 100 - try dropping this to 5 to see if this helps.

    If that's not it, then it's not a problem I'm familiar with.

Children