or
public List<AdvertisementDAL> displayChart(){ List<AdvertisementDAL> dal = new List<AdvertisementDAL>(); string sql = "Select * From AdvertisementRecord"; SqlConnection conn = new SqlConnection(_connStr); SqlCommand cmd = new SqlCommand(sql, conn); conn.Open(); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { _recordID = int.Parse(dr["RecordID"].ToString()); _recordDate = dr["RecordDate"].ToString(); _noOfClick = int.Parse(dr["NoOfClick"].ToString()); _noOfView = int.Parse(dr["NoOfView"].ToString()); _advertisementID = int.Parse(dr["FK_AdvertisementID"].ToString()); dal.Add(new AdvertisementDAL(_recordID, _recordDate, _noOfClick, _noOfView, _advertisementID)); } conn.Close(); dr.Close(); dr.Dispose(); return dal;}public List<AdvertisementDAL> pieChart(){ AdvertisementDAL dal = new AdvertisementDAL(); List<AdvertisementDAL> dll = new List<AdvertisementDAL>(); dll = dal.displayChart(); return dll;}protected void Page_Load(object sender, EventArgs e){ if (!IsPostBack) { AdvertisementBLL bll = new AdvertisementBLL(); RadChart1.DataSource = bll.pieChart(); RadChart1.DataBind(); }}
Eg:
Doc Name Document Title Fields
Doc 1 Drawing 1 text
Doc 2 Drawing 1 of 2 button
Could you please help me to find how to change GridBoundColumn to GridButtonColumn (Link/Hyperlink) in runtime?
Regards,
Tray
<telerik:RadButton runat="server" Width="85px" Height="33px" ID="btnSup""> <Image IsBackgroundImage="True" ImageUrl="/Images/Buttons/test.png"></Image></telerik:RadButton><telerik:GridDropDownColumn DataField="Department_Name" FilterControlAltText="Filter ddlDepartment column" HeaderText="Department" UniqueName="ddlDepartment" ListDataMember="Department" ListTextField="Department_Name" ListValueField="Department_Id"> </telerik:GridDropDownColumn>