P
pri_sh
I am trying to use a datagrid on a form in VB.NET. My datagrid is bound
to a dataset. When the form gets loaded, the datagrid does not display
and instead a big red cross appears. If you click on the grid, the
underlying cell comes into focus with its data. This only happens on a
machine with Windows 2000 not on WinXP. I tried everything on various
user groups but the issue still remains. I do not use any paint
override method. Also the dataset is not being changed when the error
occurs as this on the form load itself. Also, the stack trace says
error in OnPaint with message invalid paramter used. I tried try-catch
but it doesn't catch any error as it is inside the OnPaint.
One thing i noticed is that a datagrid on a form in a windows
application (exe) shows up, but my project is a class library being
used from another application. I do not know if this might be an issue.
I also tried just placing a datagrid without any associated code on the
same form and it didn't even come up as blank but just got the red
cross.
Can someone help me?
to a dataset. When the form gets loaded, the datagrid does not display
and instead a big red cross appears. If you click on the grid, the
underlying cell comes into focus with its data. This only happens on a
machine with Windows 2000 not on WinXP. I tried everything on various
user groups but the issue still remains. I do not use any paint
override method. Also the dataset is not being changed when the error
occurs as this on the form load itself. Also, the stack trace says
error in OnPaint with message invalid paramter used. I tried try-catch
but it doesn't catch any error as it is inside the OnPaint.
One thing i noticed is that a datagrid on a form in a windows
application (exe) shows up, but my project is a class library being
used from another application. I do not know if this might be an issue.
I also tried just placing a datagrid without any associated code on the
same form and it didn't even come up as blank but just got the red
cross.
Can someone help me?