I use adgv (advanced filter) to my dataGridView with DataBindingSource
computerDataSet is my Dataset
computerBindingSource is my BindingSourse
and computerTableAdapter is my TableAdapter
In my Load form it creats this one to load data from my table "Computer"
this.computerTableAdapter.Fill(this.computerDataSet.Computer);
But I have departmentId in my Computer table "deptId" and I want to use "Where Clause..." I want to put condition but I don't know how to do it. In linq I would do like this
var computers = db.Computer.Where(x =>x.deptId == departmentId).Tolist(); // I have value of departmentId
But How can I put like Where condition in this code
this.computerTableAdapter.Fill(this.computerDataSet.Computer);
Thank you guys in advance!