title: DevExpress: ASPxGridView GroupBy() won't work
body: <p>My goal is to group the data at <em>runtime</em> inside a grdView which added to a panel also at <em>runtime</em></p>
  
  <pre><code>grdView.DataSource = tbl;
  grdView.DataBind();
  grdView.Settings.ShowGroupPanel = true;
  grdView.BeginUpdate();
  grdView.GroupBy((DevExpress.Web.ASPxGridView.GridViewDataColumn) grdView.Columns["ClmnName"]);//or an index (0) for example
  grdView.EndUpdate();
  </code></pre>
  
  <p>any suggestions?</p>
  
  <p><strong>EDIT</strong>:
  Current Code</p>
  
  <pre><code>//GRID
  pnlGrids.Controls.Add(grdView);
  grdView.DataSource = tbl;//Datasource
  foreach (GridViewDataTextColumn clmn in grdView.Columns)//HTML
       clmn.PropertiesTextEdit.EncodeHtml = false;
  if (key.GroupingDataMembers.Any())//Group panel
       grdView.Settings.ShowGroupPanel = true;
  grdView.Images.ImageFolder = "~/App_Themes/Aqua/GridView/";//Style
  grdView.Styles.CssFilePath = "~/App_Themes/Aqua/GridView/styles.css";
  grdView.Styles.CssPostfix = "Aqua";
  grdView.DataBind();//Bind
  if (key.GroupingDataMembers.Any())//Grouping
       (grdView.Columns[key.GroupingDataMembers.First().DataMember.DisplayName] as DevExpress.Web.ASPxGridView.GridViewDataColumn).GroupBy();
  grdView.ExpandAll();//Expand all
  </code></pre>