Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# datagridview search filter

private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            DataView dv = table.DefaultView;
            dv.RowFilter = "FirstName LIKE '" + txtSearch.Text + "%'";
            dataGridView1.DataSource = dv;
        }
 
PREVIOUS NEXT
Tagged: #datagridview #search #filter
ADD COMMENT
Topic
Name
1+9 =