I would like to find & compare an earlier row item during the dataBind on my grid. Here's a partial code I'm hoping to complete:
protected void RadGridX_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = e.Item as GridDataItem;
if (item["Name"].Text == "RowIWant")
{
foreach(string colName in colNames)
{
//get this row's value
int thisValue = Convert.ToInt32(item[colname].Text);
// get the value from the RowToCompare
int earlierValue = ???
}
}
}
}
protected void RadGridX_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = e.Item as GridDataItem;
if (item["Name"].Text == "RowIWant")
{
foreach(string colName in colNames)
{
//get this row's value
int thisValue = Convert.ToInt32(item[colname].Text);
// get the value from the RowToCompare
int earlierValue = ???
}
}
}
}