Edit: I realized just now I misspelled Definition in the title... Sorry.
I'm working on a personal project, where I have a database (SQLite) and a dataGridView.
Now This is what I have:
I've marked where I get the error.
And the Error description:
Anyone know what I could've done wrong?
I'm working on a personal project, where I have a database (SQLite) and a dataGridView.
Now This is what I have:
Code:
public Form1()
{
DataSet ds = new DataSet();
SqlConnection connection = new SqlConnection(@"Data Source=testingsql2.s3db");
SqlDataAdapter SQLda = new SqlDataAdapter("Select * from User", connection);
SqlCommandBuilder SQLcb = new SqlCommandBuilder(SQLda);
dataGridView1.Fill(ds, "User"); //Error here
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "User";
}
And the Error description:
Code:
Error 1 'System.Windows.Forms.DataGridView' does not contain a definition for 'Fill' and no extension method 'Fill' accepting a first argument of type 'System.Windows.Forms.DataGridView' could be found (are you missing a using directive or an assembly reference?)
Comment