HighTechTalks DotNet Forums  

Identifying Rows

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Identifying Rows in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Ben
 
Posts: n/a

Default Re: Identifying Rows - 12-30-2007 , 08:48 AM






On Dec 29, 6:40*pm, "Mark Rae [MVP]" <m... (AT) markNOSPAMrae (DOT) net> wrote:
Quote:
"Milosz Skalecki [MCAD]" <mily... (AT) DONTLIKESPAMwp (DOT) pl> wrote in messagenews:EDE6104A-03AC-45F4-A7A2-FB3FC6205413 (AT) microsoft (DOT) com...

Refering to Mark's reply, bound field is represendted by DataTableCell
(which does not contain any child controls) therefore in order to get the
value you must use Text property
row.Cells[index].Text

You are right of course, but I took the OP's statement of "so I put a
LABEL> in one of the cells" to mean that he'd created a TemplateColumn
containing an <asp:Label> control - I have a feeling now that he didn't...

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
I'm pretty fresh to .NET (as u can probably tell , and always liked
the control ASP gave me (I don't like using wizards to bind data etc
since i feel I lose flexibility and control)... I know .NET is pretty
flexible, I just have to learn all the tricks. The way I'm loading my
data is through a function I wrote that loads a DataTable into memory
(global var on the page), then binds a DataView to the GridView (based
on the users filters), my hopes are to avoid going to the server to
reload the DataTable with each filter change. So what I was doing is
when loading my DataTable, I updated the text of one of the columns
with a "<LABEL>" -- I see now it's not the right approach.

Thanks a lot for the responses and insight... looks like the
DataKeyNames can satisfy my needs for sure, and I will try messing
with actually adding controls to the cell.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.