My RadGrid has multiple GridTableViews, I have tested my ItemDataBound code on a RadGrid with no GridTableViews and the image gets added as expected.
The problem is the code in the ItemDataBound needs adjusting to be able to access the GridTableView with the name "ReviewLabel"
as the error is "Cannot find a cell bound to column name 'photoid'"
Please can someone show me how to rewrite this please
This is the ItemDataBound Code
protected void RadGrid1_ItemDataBound1(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
string s = item["photoid"].Text;
if (s == null || s == string.Empty || s == "" || s.Length < 2 || s == " ")
{
//code
}
else
{
//code
}
}
}
Thanks
Jason