Click here to Skip to main content
15,398,432 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have one mtlcontrol of datagridview.i add some functionality so user can drop and drag the filed bt when I use this control for drag and drop .then it throw error” Object reference not set to an instance of an object”.it indicates MTLDataGridControl is null .so how can i make the datagridcontrol is not null.
Updated 6-Jun-10 23:55pm
J4amieC 7-Jun-10 6:05am
Reason for my vote of 1
Badly worded, most generic error going, txtspk.

There's no way we can help you unless you give us more information. What platform? Winforms? Asp.Net? WPF? Silverlight? Show us the code where the exception is happening.
This is one of the most commonly know errors (if not the most).

It means you have used the mtldatagridcontrol before initiating it.

Check your code, debug it if needed. Somewhere you are using the mtldatagridcontrol while it is null.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900