Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LinkButton in DataGrid
Message
 
To
21/10/2003 09:06:08
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00840336
Message ID:
00840724
Views:
27
>I converted my "select" column into a template column w/ a linkbutton in the ItemTemplate. How do I code the "select" linkbutton to only show if there is data within that particular datarow??

Inside of that templated column, you will need to test if the row has data and display the select if it does, and don't display it if it doesn't.

You can get a columns value, of the DataItem of the grid, and you can test it, the value of the column. That may help, but If I were I might just use a DataList
DataBinder.Eval(Container.DataItem, "MyColumnName")
Morgan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform