re: DataGrid Selected Item from outside grid
I have a datagrid with n rows which displays a set of items / products which are part of a detail table.
I have a button outside the grid to "Add a New Item" and Add Similar Item in another master table.
So If the user has clicked on the datagrid (in fully editable mode)
I need to get the selected item and then pass the itemId to the new screen.I cannot use DataGridEvents as the button clicked is outside the grid and selected Item returns null when I access it from the Button_Click event handler.
How does one implement this?
Thanks for any help.