I use radgridview control to fill tablea and tableb datasource.
in frmA and frmB I use same mothod
set radgridview property->summaryrowsbottom->sum filedname
in frmA recordset count is 10 ->radgridview summary display ok (sql: select * from table a)
but in frmB recordset count is 300 ->radgridview summary can't display from the gridview bottom (sql:select * from tableb)
if frmB recordset count is 10 ->radgridview summary display ok (sql:select top 10 * from tableb)
how can i display summaryrowsbottom value in a lot of rows?
thanks!
2013.03.28
I use code
in frmA and frmB I use same mothod
set radgridview property->summaryrowsbottom->sum filedname
in frmA recordset count is 10 ->radgridview summary display ok (sql: select * from table a)
but in frmB recordset count is 300 ->radgridview summary can't display from the gridview bottom (sql:select * from tableb)
if frmB recordset count is 10 ->radgridview summary display ok (sql:select top 10 * from tableb)
how can i display summaryrowsbottom value in a lot of rows?
thanks!
2013.03.28
I use code
private
RadGridView radGridView1;
private
GridViewSummaryItem summaryItem1;
private void LoadData()
{
tbladapter.fillbydate(ds.tbla,begindate,enddate);
summaryItem1 =
new
GridViewSummaryItem(
"Id"
,
"Sum of Id: {0}"
, GridAggregateFunction.Sum);
var summaryRow1 =
new
GridViewSummaryRowItem(
new
[] {summaryItem1});
//if I add onece the radgridview can't display in 299 recordset
radGridView1.SummaryRowsBottom.Add(summaryRow1);
//if I add two same method the radgridview can display summary ok
radGridView1.SummaryRowsBottom.Add(summaryRow1);
}