Link to home
Start Free TrialLog in
Avatar of Kokas79
Kokas79

asked on

Creating a DataTable

Hello

I am creating a console app in VS.NET and my using statements are:

using System;
using System.Data;
using System.Data.SqlClient;

However when i write "DataTable dt = new" and click space, Visual Studio does not bring up DataTable automatically. After that on the next line when i use "dt." nothing appears after the dot.

Am i missing some other using statement?

Thanks
SOLUTION
Avatar of aymansoft
aymansoft

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kokas79
Kokas79

ASKER

well it works fine with other things like DataAdapter....i will try to see on my other machine. But i want to avoid re-installing!
Does it compile or is it just intellisense that fails?
If it doesn't compile, did you try removing the 'using' statement and declaring it as 'System.Data.DataTable' instead?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kokas79

ASKER

damn thing works now...all i did was removed the project and added a new one...!

sorry guys for wasting your time...i will give extra points