Home Forums WinForms controls Xceed Grid for WinForms How to display "yes" or "no" instead of boolean in vb Reply To: How to display "yes" or "no" instead of boolean in vb

User (Old forums)
Member
Post count: 23064

A little correction: I think the 2 DictionaryEntry-objects should have <b>true</b> and <b>false</b> as their keys. If you want to display a string for cells that are not yet filled in (not yet true and not yet false), you can also add an entry for that.

ArrayList refTypeAL = new ArrayList(3);
refTypeAL.Add(new DictionaryEntry(<b>true</b>, “Yes”));
refTypeAL.Add(new DictionaryEntry(<b>false</b>, “No”));
refTypeAL.Add(new DictionaryEntry(<b>DBNull.Value</b>, “(empty)”));

… // the rest of the code

Imported from legacy forums. Posted by Tommy (had 202 views)