I have an ASPxGridView and in the EditForm, I have a popup form when the suer clicks a button. I need to get the ID for the currently selected entity/row so that I can query the db and populate a dropdown on the popup based on that ID. How can I get that? I know with some events, you can do this:
protected void myGrid_OnRowUpdating(object sender, ASPxDataUpdatingEventArgs e)
{
Guid entityId = (Guid)e.Keys[0];
So I wanted to try that with the SelectionChanged event, but the event argument is only of type EventArgs, so i cannot use the above..
Ideas?
I ended up doing something client-side. First, I added this column:
then I also added this (to the same grid):
Lastly, the javascript: