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,?
Grid View Control
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 27, 2013, 10:51 PM EDT
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
}