Getting Profile info for different users in a GridView

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

asp.net 2.0

I have a webpage with a gridview. Each row in the GridView contain info
about a user (Membershipuser, standard asp.net 2.0 membership). One of the
columns in the GridView is a BoundField containing username. I don't know if
I can access that boundfield from the method below or use some other tricks
to get the username.

The reason I ask is that I have some custom fields I need access to by
creating an instance of the ProfileCommon object for that user. This is the
custom fields:

<properties>
<add name="Sykkel" type="System.String"/>
</properties>

protected void gvwUsers_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ProfileCommon userProfile = Profile.GetProfile(username);

}
}

any suggestions?
 
Back
Top