Skip to content

Instantly share code, notes, and snippets.

@longtth
Created May 18, 2018 04:42
Show Gist options
  • Save longtth/13e7c04775a8300aff39a4202b6d390e to your computer and use it in GitHub Desktop.
Save longtth/13e7c04775a8300aff39a4202b6d390e to your computer and use it in GitHub Desktop.
DataGridView filter
DataView dv;
dv = new DataView(ds.Tables[0], "type = 'business' ", "type Desc", DataViewRowState.CurrentRows);
dataGridView1.DataSource = dv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment