When I import Dataset to application in connnection string I choose "No exclude information from connection string. I will set this information in my aplication".
Now when I compile the form there is nothing to see in the DataGrid, where I must place connection in my application to connet ?
Now I have:
public Form1()
{
InitializeComponent();
using (OracleConnection con = new OracleConnection("Data Source=localhost;Persist Security Info=True;User ID=martynas;Password=xxxxxxx;Unicode=True"))
{
try
{
con.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = con;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
This conection is open, but DataGridView still does not show any records. I think that maybe I place connection in wrong method ?