I think you should be able to refer to the bound data in the same way
you referred to it in Column 1.
---
<asp:TemplateField HeaderText="Column1" Visible="False">
<ItemTemplate>
<asp:Label ID="lbl1" runat="server" Text='<%# Eval("Column1") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Column2">
<ItemTemplate>
<asp:Label ID="lbl2" runat="server" Text='<%# Eval("Column2") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Column3">
<ItemTemplate>
<asp:Label ID="lbl3" runat="server" Text='<%#
myFunction(((string)Eval("Column1")) %>' />
</ItemTemplate>
</asp:TemplateField>
---
On Sep 9, 10:42 pm, Robert Hirabayashi <[EMAIL PROTECTED]>
wrote:
> I apologize in advance if I don't use the proper terminology to
> describe what is going on. And I thank you in advance for your help.
>
> I have a GridView that pulls data from a web service. In column 5 I
> want to call a function and pass the data text from column 1. I can
> call the function no problem with static data with this:
>
> <%#myFunction("string data")%>
>
> I want to replace "string data" with a variable that contains data
> from column 1 from the row from which it is called.
>
> I hope this makes sense.
>
> Thanks!!!
>
> Robert
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---