How to set condition on Repository LookupEdit in Gridview Winform Devexpress?

2.7k Views Asked by At

I have Gridview & in 1st Column have Repository LookupEdit. If I select one item on Repository LookupEdit again I don't want to choose same Item. How to set this condition on the Repository LookupEdit ?

1

There are 1 best solutions below

4
On

You have to create a conditionally source for Lookupedit.

Here are some samples:

https://www.devexpress.com/Support/Center/Question/Details/DQ13616

I think this code is what you need, but you have to use the selected column in place of the second one:

https://www.devexpress.com/Support/Center/Example/Details/E898