المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : show bit field as Checkbox in Listview



C# Programming
08-30-2009, 12:30 AM
I have a listview and two bits fields (is_active) and (in_use) but it's showing on the ListView as True or False..

I am using this code to show in the ListView:

item.SubItems.Add(sql_reader["is_active"].ToString());
item.SubItems.Add(sql_reader["in_use"].ToString());


how can I change it to show as checkbox?