I am trying too change group by expression Programmatically like this code:
but after that grid is bound in normal mode without any group i.e(groupcount=0).
I test my group expression in design mode and it worked correctly.
any idea??
grdHistory.MasterGridViewTemplate.GroupByExpressions.Clear(); |
GridGroupByExpression expression1 = GridGroupByExpression.Parse("[SmsTitle] as [SmsTitle] format '{1} ', count([Serial]) as [Template] format '({1} {0})' Group By [SmsTitle]"); |
grdHistory.MasterGridViewTemplate.GroupByExpressions.Add(expression1); |
grdHistory.DataSource = SMSPanelComponent.GetSmsTemplates(); |
I test my group expression in design mode and it worked correctly.
any idea??