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
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?
Hi Mike,
Attached is the sample program I created using Visual Studio 2008 and Infragistics WinForm 10.2.
Could you please check to see where I am doing wrong?