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
735
CalculateAutoResizeWidth doesn't work well with DbNull data value
posted

We have a grid and need to automatically adjust column width when the data source changes. CalculateAutoResizeWidth works fine on grid column normally, but the problem comes when data source contains DbNull. The calculated column width is much wider if data contains DbNull. Is there any work around this problem?

Thanks,

Zongwen

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Zongwen,

    I have never heard of this happening before. There is no reason why a DBNull in a cell should cause the autosize to make the cell bigger.

    Can you duplicate this in a small sample project and post it here?

Children