A
amit.vasu
Hi
I have a datagridview control which I am binding to a datatable. Before
binding to a datatable I am adding one row in the datatable for Total
and populating data in that row at runtime.
Now when user click the header of the column data gets sorted. I always
want the row which is displaying TOTAL at the end.
I have scenario as mentioned below. Is there a way to keep the total
row always at the end ?
I mean sorting should always be the last row in datagrid.
------------------------------------------------
col1 col2
------------------------------------------------
column1 1000
column2 1500
Total 2500
-----------------------------------------------------------------
I have a datagridview control which I am binding to a datatable. Before
binding to a datatable I am adding one row in the datatable for Total
and populating data in that row at runtime.
Now when user click the header of the column data gets sorted. I always
want the row which is displaying TOTAL at the end.
I have scenario as mentioned below. Is there a way to keep the total
row always at the end ?
I mean sorting should always be the last row in datagrid.
------------------------------------------------
col1 col2
------------------------------------------------
column1 1000
column2 1500
Total 2500
-----------------------------------------------------------------