I am having an issue with the incorrect data displaying in my pop-ups when I select the UltraDataSource row based on my grids current active row. I have an object within the ultraDataSource Tag with information that I need to get access to. The following is the call I am making to pass data to my pop-up...
ultraDataSource.Rows[ultraGrid.ActiveRow.Index].Tag
What happens when I interact with the UI?
What is the best way to go about resolving this issue? How can I open the proper UltraDataSource row which corresponds to the selected UltraGrid row?
Hello Devin,
I am glad for helping you resolve your issue. You can also click on Suggest an Answer on my post, in order to verify the thread as answered. Thus you are clearly pointing out that there is found solution on this issue and it might be helpful for future related searches, from our customers.
If you need any further assistance or I am missing something, please do not hesitate to update this post or to create new thread.
Thank you for using Infragistics components!
Thank you very much for your timely response and help. It was such a simple fix but one that I was not able to pin down until posting here. Thank you again!
Thank you for posting in our forums!
Whenever the UltraWinGrid is grouped or ungrouped, the UltraGrid.ActiveRow.Index represents the index of this row in its parent collection. The value of the Index property of an object can change when objects in the collection are reordered, such as when objects are added to or deleted from the collection. Therefore when the UltraWinGrid is grouped, you have no guarantee that the active layout index is the same as the underlying data one.
The best way to resolve your issue is to use the property UltraGrid.ActiveRow.ListIndex, which returns the underlying data row, corresponding to the active layout row of the UltraWinGrid. For further reference please refer to our documentation page about ListIndex Property where you can find related code sample.
Also I have created sample that may be helpful for you. Please see the attached file.
I am waiting for your response.