Migration of MS-Grid control causing problems
- From: "Arun" <arun77@xxxxxxxxx>
- Date: 17 Nov 2005 08:43:18 -0800
I'm in the process of migrating an application written in VB 6.0 to
VB.NET. This application uses the MS-Grid control extensively. I have
decided to use the MS-Grid Active-X control in my VB.NET project
instead of using the .NET DataGrid as the DataGrid control in .NET is
not supporting many of the required features like freezing of columns.
However I find that an exception is thrown when the AddItem method of
the Grid is called. The error message is "By ref value type parameter
cannot be null ".
The code snippet is as follows:
Grid1.AddItem("test", 1)
In VB 6.0 the Grid.AddItem method had the signature
Grid1.AddItem(Item As String,[index]) As Integer.
In VB.NET, the signature has been changed to
Grid1.AddItem(Item as String, index As Object), with the overload
Grid1.AddItem(Item As String)
Invocation of both the overloads throw the same exception.
Any help on this will be appreciated..
Thanks,
Arun
.
- Prev by Date: Re: DPI settings and window sizing
- Next by Date: Re: Programming Function Keys
- Previous by thread: Hiding columns in datagrid
- Next by thread: Re: Prevent datagrid cell from receiving focus
- Index(es):
Relevant Pages
|