Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LinkButton in DataGrid
Message
 
À
21/10/2003 09:06:08
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00840336
Message ID:
00840724
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform