Database Reference
In-Depth Information
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace);
}
finally
{
// Connection close
conn.Close();
}
}
6.
To set the ModifyDataTable form as the start-up form, modify the
Program.cs
statement.
Application.Run(new DataView());
to appear as
:
Application.Run(new ModifyDataTable());
Build the project, and run it by pressing Ctrl+F5. Your results should look like
Figure 15-10.
Figure 15-10.
Modifying a data table