Link to home
Start Free TrialLog in
Avatar of claracruz
claracruz

asked on

Formview DataRowView

Hello experts,

I am needing to a record from my DataRowView to make some calculations and then bind the result to a label control.
How do I achieve this if the control being used is a formview control.

In a datalist control, I do the following;-
 string DOORPLAN = ((DataRowView)e.Item.DataItem)["DOORPLAN"].ToString();

in the ItemDataBound event of the control

protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
    {
             string DOORPLAN = ((DataRowView)e.Item.DataItem)["DOORPLAN"].ToString();
             ///do stuff then bind result to control
    }


What is the equivalent for formviews
ASKER CERTIFIED SOLUTION
Avatar of deanvanrooyen
deanvanrooyen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of claracruz
claracruz

ASKER

got you!!!