Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Prevent Last row in DatagridView from Sorting

$
0
0

Hi,

i have a datagridview which is populated with a DataTable & i am inserting a row  to show sum of 1 column values inside it (in DataTable) and then providing it as Datasource to the datagridview.

the last row is nothing but "Total : %Number of records%          %Sum Value%".

when the gridview sorts the above row is also sorted which i guess is obvious.

how can i prevent the above from sorting. 

is there sumthing wrong in inserting a summary row in datatable itself, if so whts the other option to have similar functionality.

Thanks

ST


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>