Posted on: 10/5/2015 4:40:38 AM | Views : 929

Hi Friends , 
Is there a smarter way to write this code ? Please let me know if there is any way I can write the below code in less number of line..
if (reader["Property_Type"] != DBNull.Value) { if (reader["Property_Type"].ToString() == "Customer") { chkCustomerType.Checked = true; } else if (reader["Property_Type"].ToString() == "Vendor") { chkVendorType.Checked = true; } else if (reader["Property_Type"].ToString() == "Publisher") { chkPublisherType.Checked = true; } ...

Go to the complete details ...