while (rdr.Read())
{
ListViewItem item = new ListViewItem(rdr.GetString(0));
listView3.Items.Add(item);
if (rdr.GetString("Status") == "OK")
{
MessageBox.Show(rdr.GetString("No")); // shows 03,04,05(Status:OK) while 01,02(Status:Del)
}
my concern is this "i have a listview with checkboxes and i want to show(MARK CHECK row) ONLY the "OK Status" leaving Del Status unchecked" .Ofcourse it is static if i change the status in database.
Output(Listview3)
^John
Cristy <- no chceck because mysql status is Del
^Audrey