I have a grid view control in my form and i am using sql compact database file,it is located in the folder where the exe file is present, i have to load a table in my
grid view control programatically, how can i do that,?
Loading
I have a grid view control in my form and i am using sql compact database file,it is located in the folder where the exe file is present, i have to load a table in my
grid view control programatically, how can i do that,?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Oct 28, 2013, 2:51 AM
Have you tried to connecting SQL CE?
Is there any problem?
You can use like,
SqlCeConnection conn = new SqlCeConnection("You connection string for sdf file");
try {
conn.Open();
DataTable dt = conn.GetSchema();
}
catch (Exception e)
{
//Fail
}