Hi Matt,
What I mean is to use field name (or field index) to retrieve data from
DataRowView. For example, your sql query is
SELECT bolReg, EventID FROM YOUR_TABLE
Then
Dim bolOnline As Boolean = drv(“bolReg”) ‘ or drv(0)
Dim eventID As String = drv(“EventID”) ‘ or drv(1)
And any web controls you use to show data of DataList should be in the
DataList, e.g. you should build a label in the datalist:
asp

ataList id="dataList" runat="server" RepeatDirection=Vertical >
<ItemTemplate>
<asp:Label Runat=server ID="lblReg "></asp:Label>
</ItemTemplate>
</asp

ataList>
then you can use following code to refer to it:
Dim lblReg As Label = CType(e.Item.FindControl(“lblReg”), Label)
HTH
Elton
"mplutodh1" wrote:
> Elton,
>
> I am confused as to how that is much different from what I was doing?
> First of all is the addition of _col_ID to the end of bolOnline
> something new that I am missing?
>
> The fields in the table are (bolReg) which is a Yes/No for being online
> reg or not.
> Then the registration ID (EventID) is used in the URL for the
> registration. Beyond that there are no other fields I am working with
> in the DB. I don't see what demensioning a lblReg to = lblReg_ID has
> anything to do with what is in the DB?
>
> Sorry for being confused, just don't really see what you are trying to
> show me. I don't know how i "need find out lblReg built in datalist"
> rather than declaring it.
>
> Sorry! Thanks for the help.
> -Matt
>
>