c# - Dealing with Dependcy Properties/Columns in GridControl? -



c# - Dealing with Dependcy Properties/Columns in GridControl? -

i working devexpress gridview , have object i'm trying populate in grid. e.g lets have product. first column repositoryeditorlookupedit contains list of products. want if specific product selected coke, want columns populated product's other properties, such color, price, description etc... tricky bit gridcontrol bound object type 'transactionitem' has relationship product {many-to-many} , of cause have interreship 'transactionproduct'. i have tried using unbound columns grid loses values after rowchange. is there way overcome or design wrong. basically, want columns populate based on object selected in column.

do want initialize column default values? if so, should handle gridview's cellvaluechanged event , update other cell values in row using

gridview.setrowcellvalue(gridview.focusedrowhandle, gridview.columns["price"], someprice);

method. also, if using unbound column, should preserve new info using customunboundcolumndata event handler.

c# gridview devexpress xtragrid

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -