repositorylookupedit - Devexpress RespositoryLookUpEdit in grid , the value disaper -
i have devexpressgridcontrol. want use in 1 column of grid : repositorylookupedit. fill repositorylookupedit database question. question return 3 columns : idperson , name , idcity. colums : idperson , name have data idcity have set in appication.
so - in gridcontrol column idcity has fildename : idcity, , columnedit : repositorylookupedit. - repositorylookupedit has displayvalue : cityname, , valuemember: idcity.
and question is:
when choose in grid in 1 row value of city , go row, value first row disaper.
what doing wrong? give me advise?
i use devexpress 9.2.
this.gvperson = new devexpress.xtragrid.views.grid.gridview(); this.repluecity = new devexpress.xtraeditors.repository.repositoryitemlookupedit(); this.repluecity.columns.addrange(new devexpress.xtraeditors.controls.lookupcolumninfo[] { new devexpress.xtraeditors.controls.lookupcolumninfo("idcity", "idcity", 20, devexpress.utils.formattype.none, "", false, devexpress.utils.horzalignment.default), new devexpress.xtraeditors.controls.lookupcolumninfo("cityname", "cityname")}); this.repluecity.displaymember = "cityname"; this.repluecity.name = "repluecity"; this.repluecity.nulltext = "[choose city]"; this.repluecity.texteditstyle = devexpress.xtraeditors.controls.texteditstyles.standard; this.replueoceny.valuemember = "idcity"; // citycolumn this.citycolumn.appearancecell.options.usetextoptions = true; this.citycolumn.appearancecell.textoptions.halignment = devexpress.utils.horzalignment.center; this.citycolumn.appearancecell.textoptions.valignment = devexpress.utils.vertalignment.center; this.citycolumn.caption = "ocena"; this.citycolumn.columnedit = this.repluecity; this.citycolumn.fieldname = "idcity"; this.citycolumn.name = "idcityname"; this.citycolumn.visible = true;
you have set valuemember
repluecity
(which editor in column). set replueoceny
.
check string idcity
in 3 cases: must written same (mind caps!).
Comments
Post a Comment