> Hi, how do I retrieve the e.Row.DataItem.ItemArray[] on the code? Because
> I need to retrieve the value of one field wich comes from the source wich
> is bound to grid...
You don't need ItemArray[] for this...
protected void gvHistory_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string strTextFromDB =
((DataRowView)e.Row.DataItem)["FieldFromDB"].ToString();
}
}

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Paulo - 19 May 2008 14:32 GMT
>> Hi, how do I retrieve the e.Row.DataItem.ItemArray[] on the code? Because
>> I need to retrieve the value of one field wich comes from the source wich
[quoted text clipped - 11 lines]
> }
> }
Thanks Mark! It worked!