Hello,
I want to create a grid with data changes as per radiobuttonlist selection.
Then depend on that data there are checkbox control ,cascading dropdoenlist control.but as per
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx
this link i try to create dropdownlist as per my data but it is not working.
Here is following code:
qry = "SELECT BudgetName, Budget,GroupName,Budget.GroupId FROM Budget,mGroup " +
" where BudgetTypeId=(select BudgetTypeId from BudgetType where BudgetTypeName='" + HiddenField1.Value + "') and " +
"Budget.GroupId = mGroup.GroupId ";
using (SqlCommand Cmd = new SqlCommand(qry, Conn))
{
da.SelectCommand = new SqlCommand(qry, Conn);
DataSet myDataSet = new DataSet();
try
{
da.Fill(myDataSet, "BudgetDim");
da.SelectCommand = new SqlCommand("SELECT GroupId, DimensionName FROM [Dimension]", Conn);
da.Fill(myDataSet, "Dimension");
}
finally
{
Conn.Close();
}
RadGrid2.DataSource = myDataSet;
RadGrid2.DataBind ();
and also when I try to assign seperate datatabels to 2 grids but it is not showing data for second grid.
Please help me out.
I want to create a grid with data changes as per radiobuttonlist selection.
Then depend on that data there are checkbox control ,cascading dropdoenlist control.but as per
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx
this link i try to create dropdownlist as per my data but it is not working.
Here is following code:
qry = "SELECT BudgetName, Budget,GroupName,Budget.GroupId FROM Budget,mGroup " +
" where BudgetTypeId=(select BudgetTypeId from BudgetType where BudgetTypeName='" + HiddenField1.Value + "') and " +
"Budget.GroupId = mGroup.GroupId ";
using (SqlCommand Cmd = new SqlCommand(qry, Conn))
{
da.SelectCommand = new SqlCommand(qry, Conn);
DataSet myDataSet = new DataSet();
try
{
da.Fill(myDataSet, "BudgetDim");
da.SelectCommand = new SqlCommand("SELECT GroupId, DimensionName FROM [Dimension]", Conn);
da.Fill(myDataSet, "Dimension");
}
finally
{
Conn.Close();
}
RadGrid2.DataSource = myDataSet;
RadGrid2.DataBind ();
and also when I try to assign seperate datatabels to 2 grids but it is not showing data for second grid.
Please help me out.