So what I'm trying to do should be very basic, but seems unnecessarily difficult with the radgrid. All I am doing is binding the grid server-side, and need to conditionally set a column to "readonly" if certain criteria is met by the item's dataitem. So my question is how do you set a single item's column to readonly in the ItemDataBound event?
protected void gridFavorites_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item.DataItem != null) |
{ |
IFavorite fav = (IFavorite)e.Item.DataItem; |
if (fav.CmsPageId == Guid.Empty) |
// Where to go from here to set readonly=true? |
} |
} |