I happen to have a DatagridView
with the following format (ver Imagen)
(Orange -> CheckBox and white disabled -> CheckBox activated, it turns out that I want to filter this DataGridView
and I do it like this:
public void filtrarPorClave()
{
DataView dv = (DataTable)dgvExistencia.DataSource.DefaultView;
dv.RowFilter = string.Format("CLAVE_ART LIKE '%{0}%'", TextBox1.Text);
}
The filter does me correctly, but does it take away the format, some form of maintaining the format when filtering the data?
I appreciate any suggestions.