P
Parrot
I am using the following SQL query to populate a dataGridView control.
SELECT DEPT, Employee, Curr_$ FROM EE
ORDER BY DEPT, Employee
COMPUTE SUM(EARNDED.Curr_$) BY DEPT
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(SQLCommand, strConn);
table = new DataTable();
int ret = dataAdapter.Fill(table);
dataGridView1.DataSource = table;
The above query only returns records for the first control break or DEPT and
does not give any subtotals. I do get correct results if I submit the same
query in Enterprise Manager. Does anyone know why I can't get subtotals to
display for all depts in my dataGridView?
Dave
SELECT DEPT, Employee, Curr_$ FROM EE
ORDER BY DEPT, Employee
COMPUTE SUM(EARNDED.Curr_$) BY DEPT
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(SQLCommand, strConn);
table = new DataTable();
int ret = dataAdapter.Fill(table);
dataGridView1.DataSource = table;
The above query only returns records for the first control break or DEPT and
does not give any subtotals. I do get correct results if I submit the same
query in Enterprise Manager. Does anyone know why I can't get subtotals to
display for all depts in my dataGridView?
Dave