Oct 10, 2002 #1 netangel Programmer Joined Feb 7, 2002 Messages 124 Location PT I need to put a link on all rows except first one of a datagrid. Is there any easy way? NetAngel
Oct 10, 2002 #2 link9 Programmer Joined Nov 28, 2000 Messages 3,387 Location US Put the link on all rows declaratively in your .aspx page. Use itemDataBound event to remove it from the first row of the grid at runtime. Let me know if you need examples how to do that. paul Upvote 0 Downvote
Put the link on all rows declaratively in your .aspx page. Use itemDataBound event to remove it from the first row of the grid at runtime. Let me know if you need examples how to do that. paul
Oct 10, 2002 Thread starter #3 netangel Programmer Joined Feb 7, 2002 Messages 124 Location PT Thanks. I knew it had to be easy. I was trying to do it using an extra field in my SQL statment, and then catch it on the DataBindings. This is my code (ItemDataBound event), should anyone need it: Code: If e.Item.ItemIndex = 0 Then e.Item.FindControl("hlEliminar").Visible = False End If Thanks again Paul NetAngel Upvote 0 Downvote
Thanks. I knew it had to be easy. I was trying to do it using an extra field in my SQL statment, and then catch it on the DataBindings. This is my code (ItemDataBound event), should anyone need it: Code: If e.Item.ItemIndex = 0 Then e.Item.FindControl("hlEliminar").Visible = False End If Thanks again Paul NetAngel