Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have one database in ms access name account with three tables name userid,mydata & booking i want to add data source to datagridveiw by programming dataset filling with my one table name userid only one column username how can i do this i know how can i do this by property change but not by codes help me out
Posted

Check this[^] out
 
Share this answer
 
try this code..

C#
DataTable dt1 = new DataTable();
SqlDataAdapter ad1 = new SqlDataAdapter("select statement", sql_con);
ad1.Fill(dt1);
dgrid_kot_entry.DataSource=dt1;


if this code not helps you, please comment what is the problem ?
i will try to to solve the problem !!!
 
Share this answer
 
Comments
TUMAAJKAL 21-Dec-13 6:58am    
thanx bro

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



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