I have a grid with two buttons on each row, open and remove. Using OnItemCommand click the button goes to the code fine, the remove button works fine but the open button always gets the id from the first row.
This is the code that creates the two buttons, the same except for the names and images.
This is the grid definition
And this the aspx.cs code for the Grid_ItemCommand.
The and name values for Delete is the proper one for the row, while the for OpenLink is always the FIELD_ID from the first row,
Searching the forums and examples I found several different ways of getting the field id value but none of them worked.
No idea how to fix this problem.
FYI: the form to post this to the forum has a buggy edit box. If I backspace once its works but further ones will skip to the front of words removing spaces unexpectedly. It was rather difficult to make this post.