I am developing a winform application application. I wanted to show sum of columns in last row of each column. This row must always be visible.
At moment I am thinki
No, need of adding another datagridview
Solution 1: Please refer to this solution
Solution 2: If the above link is not exactly what you want then,
You can try to manually add last, summary, row in which you can display information that you need. For example, you can try to do the following:
- Read data from database and fill System.Data.DataTable
- Add one column to the newly created DataTable – that column might be set to true for the last, summary, row
- Programmatically add one extra row that contains suitable summary data
- Do the data binding to DataGridView control
- Using appropriate event, bold or otherwise graphically distinct summary row (row that have extra column value set to true)