Haven't used the DataSource specifically, but the DataItem property is
the way to see what data the item is using, and can be called from the
DataBound event. For example...

        DataRowView drv = (DataRowView)FormView1.DataItem;
        Label Somelbl = (Label)FormView1.FindControl("label1");
        Somelbl.Text = drv["Username"].ToString();

On 4/3/06, orangefluffybun <[EMAIL PROTECTED]> wrote:
> Is there a way to retrieve the field in code in a sqlDataSource?
>
> Can I retrieve a value from it? Say table1.field1 is being retrieved
> from a sqlDataSource sqlDataSource1
>
> How can I retrieve it during databound? There has to be a way. I want
> to read/format the data before the data is bind to the FormView.
>
> Please provide any tip you have. Thank you!!!
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNet2/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to