My error, <asp:TemplateColumns with a linkButton: although intellisense
doesn't offer a Text= adding it as Text='<% # DataBinder.Eval(Container,
"DataItem.FieldName") %>... JeffP....
"JeffP@Work" <jpgmt_at_sbcglobal_dot_net> wrote in message
news:e%...
> There must be an easier way....
>
> My link button text value is always empty on ItemCommand
>
> 'gets the current datagrid
> Dim dg as Datagrid = e.Item.NamingContainer
>
> 'aspx has
> <asp:LinkButton id="btnSelectSMFC" CommandName=="SelectCallsSMFC"
>
> I've tried...
>
> dim myText = Ctype(e.Item.CommandSource).Text
>
> For each item as DataGridItem in dgItems
>
> dim lnkBtn as Linkbutten = item.FindControl("btnSelectCallsSMFC")
>
> dim lbl as Label = item.FindControl("btnSelectCallsSMFC")
>
> I do get text values of my <asp:BoundColumn's
>
> Painfully, but perhaps my only way will be to make not visible shadow
> columns for each linkbutton column.
>
> TIA
>
> JeffP.....
>
|