Has anybody else got this error when using the RadGrid.
This line fixes the problem but creates new problems
RadGrid1.EnableLinqExpressions = false;
This style of code continues to work
GridBoundColumn boundColumnCompany;
boundColumnCompany = new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumnCompany);
boundColumnCompany.DataField = "CompanyName";
boundColumnCompany.HeaderText = "Store Name";
boundColumnCompany.Aggregate = GridAggregateFunction.None;
boundColumnCompany.ShowFilterIcon = true;
boundColumn.HeaderStyle.Width = 120;
but GridCalculatedColumn stop working
GridCalculatedColumn calculatedColumnRepeater;
calculatedColumnRepeater = new GridCalculatedColumn();
RadGrid1.MasterTableView.Columns.Add(calculatedColumnRepeater);
calculatedColumnRepeater.HeaderText = "<b>" + question.GroupBy + "</b><br/>" + question.DisplayText;
calculatedColumnRepeater.ShowFilterIcon = false;
calculatedColumnRepeater.HeaderStyle.VerticalAlign = VerticalAlign.Top;
calculatedColumnRepeater.Aggregate = GridAggregateFunction.Custom;
calculatedColumnRepeater.DataFields = question.Fields.Split(new char[] { ',' });
calculatedColumnRepeater.Aggregate = GridAggregateFunction.Custom;
calculatedColumnRepeater.Expression = question.AggregrateFormulae;
calculatedColumnRepeater.DataType = new System.Double().GetType();
calculatedColumnRepeater.DataFormatString = question.DisplayString;
i need to set EnableLinqExpressions to true so i can drag columns into the group by box which stops working once i disable this line.
Cheers
This line fixes the problem but creates new problems
RadGrid1.EnableLinqExpressions = false;
This style of code continues to work
GridBoundColumn boundColumnCompany;
boundColumnCompany = new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumnCompany);
boundColumnCompany.DataField = "CompanyName";
boundColumnCompany.HeaderText = "Store Name";
boundColumnCompany.Aggregate = GridAggregateFunction.None;
boundColumnCompany.ShowFilterIcon = true;
boundColumn.HeaderStyle.Width = 120;
but GridCalculatedColumn stop working
GridCalculatedColumn calculatedColumnRepeater;
calculatedColumnRepeater = new GridCalculatedColumn();
RadGrid1.MasterTableView.Columns.Add(calculatedColumnRepeater);
calculatedColumnRepeater.HeaderText = "<b>" + question.GroupBy + "</b><br/>" + question.DisplayText;
calculatedColumnRepeater.ShowFilterIcon = false;
calculatedColumnRepeater.HeaderStyle.VerticalAlign = VerticalAlign.Top;
calculatedColumnRepeater.Aggregate = GridAggregateFunction.Custom;
calculatedColumnRepeater.DataFields = question.Fields.Split(new char[] { ',' });
calculatedColumnRepeater.Aggregate = GridAggregateFunction.Custom;
calculatedColumnRepeater.Expression = question.AggregrateFormulae;
calculatedColumnRepeater.DataType = new System.Double().GetType();
calculatedColumnRepeater.DataFormatString = question.DisplayString;
i need to set EnableLinqExpressions to true so i can drag columns into the group by box which stops working once i disable this line.
Cheers