> I tested with this line:
> Response.Write(e.Row.Cells(3).Text) which gives nothing ....
Judging by your markup, that would be correct...
> but, as I wrote, the GridView renders correctly the values.
No doubt, but not in the way you think.
Please clarify which of the columns in the GridView (you think) corresponds
to e.Row.Cells(3)...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Chris - 09 May 2008 16:49 GMT
Thanks for replying.
Well, i think that:
e.Row.Cells(0) is the editbutton
e.Row.Cells(1) is field 'place' (tested with response.write)
e.Row.Cells(2) is field 'hour' (tested with response.write)
so e.Row.Cells(3) is field 'theday'
May i know what you think i think?
Thanks
>> I tested with this line:
>> Response.Write(e.Row.Cells(3).Text) which gives nothing ....
[quoted text clipped - 7 lines]
> Please clarify which of the columns in the GridView (you think)
> corresponds to e.Row.Cells(3)...
Chris - 09 May 2008 17:01 GMT
I found it:
i need to use e.Row.Cells(3).FindControl("label1")
> Thanks for replying.
> Well, i think that:
[quoted text clipped - 17 lines]
>> Please clarify which of the columns in the GridView (you think)
>> corresponds to e.Row.Cells(3)...
Mark Rae [MVP] - 09 May 2008 17:12 GMT
[top-posting corrected]
>> Please clarify which of the columns in the GridView (you think)
>> corresponds to e.Row.Cells(3)...
> so e.Row.Cells(3) is field 'theday'
You mean this: ?
<asp:Label ID="Label2" runat="server" Text='<%# Bind("theday")
%>'></asp:Label>
If so, then e.Row.Cells(3).Text is always going to return an empty string.
Why? Because the field in question doesn't contain any text. It contains an
<asp:Iabel> webcontrol, which isn't the same thing at all as far as ASP.NET
is concerned...
Try this:
Dim MyLabel As Label = e.Row.Cells(3).FindControl("Label2")
Response.Write(MyLabel.Text)
The syntax may not be 100% correct as I never go anywhere near VB.NET...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net