I\'m using C# Windows Form Application to populate data from sql server database table using Entity Framework (EFWinForms) using the following code :
MyEnti
While I'm not certain of your possible usage, I generally use the filter property on a binding source to select certain records without giving up the ability to update the database. Something like this:
// Grab search string from SearchBox
string strSearch = Convert.ToString(RichSearchBox.Text);
// Apply Filter to BindingSource
tblContactsBindingSource.Filter = "FileAs LIKE '*" + strSearch + "*'";
Then use the Binding Source as the data source for the data grid view:
// Bind DataGridView to BindingSource
recipientGridView.DataSource = tblContactsBindingSource;