void BtnShowDataClick(object sender, EventArgs e)
{
DataTable d1 = new DataTable();
d1.Columns.Add("id");
d1.Columns.Add("name");
d1.Columns.Add("qty");
d1.Columns.Add("price");
d1.Columns.Add("product_group");
d1.Rows.Add(new object[] {001,"pd1",50,100,"group1"});
d1.Rows.Add(new object[] {002,"pd2",150,200,"group1"});
d1.Rows.Add(new object[] {003,"pd3",250,300,"group2"});
d1.Rows.Add(new object[] {004,"pd4",200,400,"group2"});
d1.Rows.Add(new object[] {005,"pd5",300,500,"group3"});
d1.Rows.Add(new object[] {006,"pd6",95,600,"group3"});
dataGridView1.DataSource = d1;
}
What I have tried:
How can I filter a group of this data