
I want to search the DataTable where column paymentMode == checkedListBox.checked item text.
DataTable table = dataTableRegister.Clone();
DataRow row;
foreach (string s in checkedListBox.CheckedItems)
{
foreach (DataRow dr in datatableRegister.Select("PayMode = s"))
{
table.Rows.Add(dr);
}
}
DataGridView1.DataSource = table;

Ronika JencyRank #770 · 3K reputationPosted Jun 10, 2019, 3:17 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 10, 2019, 3:59 AM EDT
Ajeet Singh147 reputationPosted Jun 10, 2019, 4:17 AM EDT
Ronika JencyRank #770 · 3K reputationPosted Jun 10, 2019, 8:27 PM EDT