Connecting Tech Pros Worldwide Help | Site Map

Datagrid doesn't display data

Sl1ver's Avatar
Member
 
Join Date: Mar 2009
Location: Cape Town, South Africa
Posts: 102
#1: Sep 2 '09
The grid are connectedto datasets created by visual studio, see'ing as those got their connection string from the settings, i removed the settings and insert a variable(gets it from another class) as the connection string. problem is that data doesn't doesn't want to insert. when i insert it manually in the sql database then it will appear

(Main reason for the problem i think would be that it was written to look at a ccess database and im try'ing to make itpoint toa sql database now)

Any Help?
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,156
#2: Sep 2 '09

re: Datagrid doesn't display data


If you have a correctly populated DataSet/DataTable, the data should be showing up.
Have you debugged to make sure your DataSet is getting filled properly?
Sl1ver's Avatar
Member
 
Join Date: Mar 2009
Location: Cape Town, South Africa
Posts: 102
#3: Sep 3 '09

re: Datagrid doesn't display data


It gets filled properly if i add info in the database itself, but doesn't show on the datagrid itself(doesn't add it to the database aswell)
Reply