I use a XtraGrid which it's editing mode is EditFormInplace.
I have populated datasources of all the LookUps when page is loaded. Now in runtime when LookUp1 selects an item, I need to change the datasource of LookUp2.
How can I achieve this?
"Change datasource of LookUp2 based on a LookUp1's value for in-place form."
I suggest you use the built-in functionality for cascading lookups:
Every time the Edit Form is displayed, the GridView.EditFormPrepared event fires. Thus, you can use this event to access controls within the Edit Form: