Re: Identifying Rows
- From: Ben <benm5678@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 05:48:27 -0800 (PST)
On Dec 29, 6:40 pm, "Mark Rae [MVP]" <m...@xxxxxxxxxxxxxxxxx> wrote:
"Milosz Skalecki [MCAD]" <mily...@xxxxxxxxxxxxxxxxx> wrote in messagenews:EDE6104A-03AC-45F4-A7A2-FB3FC6205413@xxxxxxxxxxxxxxxx
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.
.
- References:
- Identifying Rows
- From: Ben
- RE: Identifying Rows
- From: Milosz Skalecki [MCAD]
- Re: Identifying Rows
- From: Ben
- Re: Identifying Rows
- From: Milosz Skalecki [MCAD]
- Re: Identifying Rows
- From: Mark Rae [MVP]
- Identifying Rows
- Prev by Date: RE: WebUIValidation.js -- undefined is null or not an object
- Next by Date: Re: .Net packaging/wrapper application?
- Previous by thread: Re: Identifying Rows
- Next by thread: Re: Identifying Rows
- Index(es):
Relevant Pages
|