0 thanks for your valuable reply sir..in ur last reply i tried to use
System.Configuration.ConfigurationManager.Appsetting[]..
but i did not found ConfigurationManager after Entering "System.Configuration."
and sir i created table in Microsoft Acess 2003.My second error is in Main form the error is in this red marked code.and Error is-
" No overload Method 'Select' takes '1' argument
code :
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Select(dataGridView1.CurrentRow.Index);
LoadCurrentItem();
SetEditState(false);
}
0 Don't use ConfigurationSettings.AppSettings. Use
ConfigurationManager.AppSettings and use class (using System.Configuration;)
SqlConnection con1 = null;
con1 = new SqlConnection(ConfigurationManager.AppSettings["con"].ToString());