Saturday 15 March 2014

c# - Show Yes or No for a boolean column in a DevXpress grid -



c# - Show Yes or No for a boolean column in a DevXpress grid -

i using "devxpress.xtragrid.gridview" , have column there bound boolean data. column shows check boxes represent values. need show "yes/no" instead of check boxes. please advice me.

thanks helping, kushan randima.

this how in code in 1 of tools. dynamic sql query tool , returns checkmark or reddish x beside query result, @ runtime. can through designer done in code.

this winforms, low level gridview should same code wpf (i not positive).

first, in info grid gridview designer, add together column (mine "iserror" column). in form constructor or initializeform() this:

repositoryitemcheckedit checkedit = gridoutput.repositoryitems.add("checkedit") repositoryitemcheckedit; checkedit.picturechecked = global::gyrasoft.common.dx.properties.resources.exclamation; checkedit.pictureunchecked = global::gyrasoft.common.dx.properties.resources.accept; checkedit.checkstyle = devexpress.xtraeditors.controls.checkstyles.userdefined; gridviewoutput.columns["iserror"].columnedit = checkedit;

the resources, of course, have valid images.

basically add together repository item (repositoryitemcheckedit) , set checkstyle userdefined, , assign checkedit gridview column. can add together same checkedit multiple columns. rendering or editing.

c# visual-studio-2012 gridview devexpress

No comments:

Post a Comment