Hello i cannot sort alphabetical my datagridview
this is how i fill my grid :
bs = new BindingSource();
bs.DataSource = db.GetProducts.ToList();
dgvInventory.DataSource = bs;
and this is how i try to sort my grid :
private void toolStripButton3_Click_1(object sender, EventArgs e)
{
bs.Sort = "ID DESC, Name ASC";
dgvInventory.DataSource = bs;
}
And when i pressing button nothing happens
This two columns is exsist in data grid
and this is screen :

Quoting from: http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.sort.aspx
You’re calling the
ToList()extension method which is going to return you aList<Product>which is not going to support either of those interfaces and hence won’t be sortable.