How do I limit the amount of rows in a datagrid after DefaultView.Sort
Follow the code:
da = New OleDbDataAdapter(MySQL, Conexao)
dt = New DataTable("Pedidos")
da.Fill(dt)
dt.DefaultView.Sort = "Data Desc"
Me.DataGridView1.DataSource = dt
I want to limit the number of lines after SORT, so the system has already ordered in the order I want.