Hello
I have created the dynamic checkbox template column. But the check boxes which is present in the grid has not enabled. I can't check or decheck those checkbox controls. Please help me on this Issue......
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
Telerik.Web.UI;
using
System.Data;
using
DataAccessLayer;
namespace
GemsStandard.Transactions.Fees
{
public partial class tempDymClm : System.Web.UI.Page
{
FetchSQL fetchSQL = new FetchSQL();
protected void Page_Load(object sender, EventArgs e)
{
BindColumn();
}
public void BindColumn()
{
//http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-runtime-columns.aspx
DataTable dt = new DataTable();
dt = fetchSQL.GetDataTable(
"select ac.AcademicYearName from tblAcademicYear ac", CommandType.Text);
GridBoundColumn boundColumn = new GridBoundColumn();
// boundColumn = new GridBoundColumn();
boundColumn.UniqueName =
"AcademicYearName";
boundColumn.DataField =
"AcademicYearName";
boundColumn.HeaderText =
"AcademicYearName";
RadGrid1.MasterTableView.Columns.Add(boundColumn);
GridCheckBoxColumn checkboxColumn = new GridCheckBoxColumn();
checkboxColumn.HeaderText =
"BusFee";
checkboxColumn.UniqueName =
"BusFee";
RadGrid1.MasterTableView.Columns.Add(checkboxColumn);
GridCheckBoxColumn checkboxColumn1 = new GridCheckBoxColumn();
checkboxColumn1.HeaderText =
"TFee";
checkboxColumn1.UniqueName =
"TFee";
RadGrid1.MasterTableView.Columns.Add(checkboxColumn1);
RadGrid1.MasterTableView.Columns.Add(Gvr);
RadGrid1.DataSource = dt;
RadGrid1.DataBind();
}
}
}