We have a custom lookup column that performs searches after the user has typed a few characters and paused. It is easy to do this synchronously, since it is simply a matter of overriding GetNewValueFromEditor() and returning the value. Unfortunately this doesn't provide an easy way for us to implement an asynchronous search and update of the cell. We need to allow users to perform a partial edit and then move on to
other cells while the asynchronous search/update of the previous cell
proceeds.
It's a subclass of GridViewDataColumn, so I have access to BindingTarget and DataMemberBinding. I could spawn from GetNewValueFromEditor() an async delegate that performs the lookup and uses BindingTarget and DataMemberBinding to set the value. Do you see any problems with this approach? Any suggestions on how to better address this?
It's a subclass of GridViewDataColumn, so I have access to BindingTarget and DataMemberBinding. I could spawn from GetNewValueFromEditor() an async delegate that performs the lookup and uses BindingTarget and DataMemberBinding to set the value. Do you see any problems with this approach? Any suggestions on how to better address this?