Hi all,
I am using paging and outlook groupby on the webgrid..
However when I do a groupby on any column I get a group for the currently active page..
for eg. if my page size is 5 and I group it up by lastname.If I have 20 records with lastname SMITH the group will show up as
LASTNAME:SMITH(5) on 4 pages..
How can I make it show the total datagrid summary instead of just the page summary. LASTNAME:SMITH(20)
Thanks
Joel
The GroupByRows have a property called "Text" that you can use to change the text to whatever you need.
Hello,
I am looking for the GroupByRows property for the WebGrid control and I do not see it anywhere. I looked in .DisplayLayout but i only see the objects GroupByColumnsHidden, GroupbyRowDescriptionMask and GroupByRowStyle.
I am having the same problem as the original post. Basically I would like to have a groupBy column, but if i do that I lose the paging behavior, showing only the rows on the first page.
Can you provide me wih more information
Thanks and regards
DB
Hi,,,
This functionality is not inherent with the grid..To achieve this in your GroupColumn event handler disable the LoadOnDemand=xml paging...Bind the grid and then turn it on again..
Here is the code snippet
this.WebGrid.DisplayLayout.LoadOnDemand = LoadOnDemand.NotSet;
this.WebGrid.Browser = BrowserLevel.Auto;
WebGrid.DataSource=dt;
WebGrid.DataBind();
this.WebGrid.Browser = BrowserLevel.XML;
this.WebGrid.DisplayLayout.LoadOnDemand = LoadOnDemand.XML;