Hello!
From lasttopic i have question about filtering rows DataGridView.
This is link on topic, where you can see how shapes DataGrig:
ListCards.DataSource = BLL.Cards.GetListCards(); (View layer)
At manual MSDN i found following:
BindingSource bs = new BindingSource();
bs.DataSource = dataGridView1.DataSource;
bs.Filter = "yourColumnName like '%" + textBox1.Text + "%'";
dataGridView1.DataSource = bs;
_________________________________
In the first i want to fill Grid and show it: ListCards.DataSource = BLL.Cards.GetListCards();
When i enter text to TextBox i want to do sort by Name Grid and how make it?
Try such:
BindingSource bs = new BindingSource();
<pre lang="c#">
....Event
bs.DataSource = BLL.Cards.GetListCards();
bs.Filter = "yourColumnName like '%" + textBox1.Text + "%'";
ListCards.DataSource = bs;