I always forget how to access the underlying data in a DataBind
Event. Example:
protected void userListItem_Bound(Object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView currentRow = (DataRowView)e.Row.DataItem;
string currentUser = (string)currentRow["Username"];
}
}