Hi
I am trying to access image buttons within my Hierarchical Grid. Although i dont seem to be able to get hold of anything in order to access them. I am trying to do this within the DetailTableDataBind event.
I am trying to access image buttons within my Hierarchical Grid. Although i dont seem to be able to get hold of anything in order to access them. I am trying to do this within the DetailTableDataBind event.
protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
GridDataItem parentItem = (GridDataItem)e.DetailTableView.ParentItem;
string CID = parentItem.GetDataKeyValue("TblAVCID").ToString();
var avService = new AVService();
using (TList<AV> avList = avService.GetByIntVisitCategory(Int32.Parse(CID.ToString())))
{
e.DetailTableView.DataSource = avList;
}
((
ImageButton)parentItem["colDelete"].FindControl("imgDelete")).ImageUrl = txtImageDir + "16/data.gif";
I try binding to the imagebutton but this just errors out.
Any Help would be greatly appreciated.
Thanks