if (e.KeyChar == (char)13)
if(string.IsNullOrEmpty(txtSearch.Text))
dataGridView.DataSource = operatorsBindingSource;
else
varquery =fromointhis.operDataSet.operators
where o.Oper_FName.Contains(txtSearch.Text) || o.Pos_Id == txtSearch.Text || o.Oper_HireDate == txtSearch.Text || o.Oper_BirthDate == txtSearch.Text || o.Oper_Other.Contains(txtSearch.Text)
selecto;
dataGridView.DataSource = query.Tolist();
}
}
}
Pos_Id is an int, Oper-HireDate and Oper_BirthDate are date fields. I need to retrieve them when I run the query or is there another way that I can retrieve all the fields and assign them accordingly. For instance, select from * and then somehow from the DataSource allocate them individually. And be able to update the record. Thank you in advance