Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>From:</strong> <a href="http://www.devexpress.com/Support/Center/Question/Details/Q481844" rel="nofollow">customize RepositoryItemCheckEdit display</a></p> <p>I think the best way to achieve this goal is to change the column type to <code>Int32</code> (for example) and map <code>0, 1, 2</code> values to the <code>false, true, indeterminate</code> states via the<br> <a href="http://documentation.devexpress.com/#WindowsForms/DevExpressXtraEditorsRepositoryRepositoryItemCheckEdit_ValueUncheckedtopic" rel="nofollow">RepositoryItemCheckEdit.ValueUnchecked</a>,<br> RepositoryItemCheckEdit.ValueChecked,<br> RepositoryItemCheckEdit.ValueGrayed properties.</p> <p>Please make sure that your database field (which is bound to this column) is a string type field and contains "0","1" and "2" values. If it's an integer field, please modify your code as follows :</p> <pre><code> repchk.ValueChecked = CType(2, Integer) repchk.ValueUnchecked = CType(0, Integer) repchk.ValueGrayed = CType(1, Integer) </code></pre> <p>Please try this solution and inform us about your results. </p> <p><strong>References</strong>:<br> <a href="http://www.devexpress.com/Support/Center/Question/Details/Q433632" rel="nofollow">How to use RepositoryItemCheckEdit in XtraGrid Column for a dataTable column containing only "True"/"False" values.</a><br> <a href="http://www.devexpress.com/Support/Center/Question/Details/Q320725" rel="nofollow">xtragrid - Checkbox column</a><br> <a href="http://www.devexpress.com/Support/Center/Question/Details/Q322551" rel="nofollow">Set checkbox cheched in RepositoryItemCheckEdit</a><br> <a href="http://www.devexpress.com/Support/Center/Question/Details/Q244627" rel="nofollow">RepositoryItemCheckEdit</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload