simple question about ref with object?? PLEASE HELP
- From: "giddy" <gidisrael@xxxxxxxxx>
- Date: 22 Nov 2006 08:45:28 -0800
ok i have a datagridview in my app and i have a function defined like
so:
public void FillColumns(ref DataGridView theDGV)
when i call it ... like this :
FillColumns(ref dataGridView2);
i get : Object reference not set to an instance of an object.
i dont get it , is'nt my datagridview defined in form.designer.cs????
-> private System.Windows.Forms.DataGridView dataGridView2;
PLEASE HELP ME OUT.. i need this in a hurry!
Thanks
Gideon
.
- Follow-Ups:
- Re: simple question about ref with object?? PLEASE HELP
- From: Kevin Spencer
- Re: simple question about ref with object?? PLEASE HELP
- Prev by Date: C#3.0 extension methods and the like for the Gurus
- Next by Date: Re: Creat an Installation package for client and server
- Previous by thread: C#3.0 extension methods and the like for the Gurus
- Next by thread: Re: simple question about ref with object?? PLEASE HELP
- Index(es):
Relevant Pages
|