Scratch that question, I'm an idiot. My real question is that I don't want
to do editing within the grid, I want to populate controls outside of the
grid and then save/rebind.
I'm able to handle the Edit Command and populate the controls, but when I
want to save it back to the dataset, I need to refer to the record that was
selected within the grid. How can I refer to the item that was selected
within my grid, without setting something explicitly in a session variable
or something like that?
"James" <mi*******@gmail.com> wrote in message
news:ON**************@TK2MSFTNGP15.phx.gbl...
I have a very simple datagrid, with an edit button that I added in
PropertyBuilder. This fires the EditCommand event just fine and I show a
panel where the user can edit certain fields. I have a button to save the
changes. Within that button, I refer to dataGrid1.EditItemIndex and it's
returning -1. Isn't this property set when I click on the edit button
within the grid?