Hi,
I have a SPDataSource which connected to SPList with title and choice columns (choice column name - "Choice").
I'm trying to group the grid MainTableView by the column 'Choice'.
I tried to do that with the GridGroupByExpression (With the column Ctor), and I get an error: "Field Choice not found in the source table. Please check expression syntax".
here's a code snippet:
"
ridBoundColumn colToGroup = (GridBoundColumn)this.myGrid.MasterTableView.Columns.FindByDataField("Choice");
GridGroupByExpression expr = new GridGroupByExpression(colToGroup);
this.myGrid.MasterTableView.GroupByExpressions.Add(expr);
this.myGrid.MasterTableView.DataBind(); // Here the eror thrown.
"
Furthermore, I tried to build the group expression without the Ctor and I got the same error.
I would like some direction in the issue...
Thank You,
Neta
I have a SPDataSource which connected to SPList with title and choice columns (choice column name - "Choice").
I'm trying to group the grid MainTableView by the column 'Choice'.
I tried to do that with the GridGroupByExpression (With the column Ctor), and I get an error: "Field Choice not found in the source table. Please check expression syntax".
here's a code snippet:
"
ridBoundColumn colToGroup = (GridBoundColumn)this.myGrid.MasterTableView.Columns.FindByDataField("Choice");
GridGroupByExpression expr = new GridGroupByExpression(colToGroup);
this.myGrid.MasterTableView.GroupByExpressions.Add(expr);
this.myGrid.MasterTableView.DataBind(); // Here the eror thrown.
"
Furthermore, I tried to build the group expression without the Ctor and I got the same error.
I would like some direction in the issue...
Thank You,
Neta