Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using visual studio and microsoft access 2012.
I have a datagrid named MedicineTable.
I want to show the query result in the datagrid. I did this but nothing happened.

cmd.CommandText = "SELECT PRICELIST.* FROM PRICELIST WHERE ID=10";
cmd.CommandType = CommandType.Text;
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataTable Medicines = new DataTable();
da.Fill(Medicines);
MedicineTable.DataContext = Medicines;
Posted
Updated 12-May-13 10:04am
v2
Comments
[no name] 12-May-13 19:11pm    
http://www.codeproject.com/Articles/30905/WPF-DataGrid-Practical-Examples

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