Here's my two cents. I think Stefano's idea was close...but the
problem is your making the id of that <div> tag the same for every
row....so when you do the Columns(9).findControl() it returns that
control from each row.
You could try to find a way to change the ID of that <div> tag for each
row, and then do the FindControl() with that ID that is unique.
You could try using the primary key of the data you get from the
database and sticking it in there - and find that Control....
-OR-
Remembering back to our posts on the MSDN managed newsgroup...
http://msdn.microsoft.com/newsgroups...f-700d941c8e3d
This problem you are having is pretty much the reason why I use the
Selected Index and/or the EditItemIndex property. That's a good way
to get that one specific row.
Here's one thing you could try:
1. In the <asp

ataGrid id="MR_Grid"..... > tag, add the
attribute OnSelectedIndexChanged="MR_Grid_Select" or something like
that.
2. Also in your <asp:ImageButton ....> tag, add the attribute
CommandName="Select"
3. Create your public sub called MR_Grid_Select(object sender,
EventArgs e)
4. Inside this function you can call get the attribute of the
DataGrid. me.MR_Grid.SelectedItem and this is the actual row you just
clicked on.
5. Now you can do what stephano said - basically
Dim myGrid as DataGrid =
me.MR_Grid.SelectedItem.Cells(9).FindControl("FVDG rid")
If mypanel.Visible = False Then
Mypanel.Visible = true
Else
Mypanel.Visible = false
End if
(If you only have one control in the column this will work too
me.MR_Grid.SelectedItem.Cells(9).Controls[0]... )
Forgive me, I'm no expert on VB.NET, so if syntax is wrong, sorry.
Hope this Helps.
-Danny