Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
685
Catch Header Click and Sorting
posted

Hello,

I have an Ultragrid bound to a datatable, the last row of this datatable is a row containing the totals of the previous rows. When the user clicks on the headers of the grid, the rows are obviously sorted, including the row with totals.

What I'd like to do is to catch this click and before the grid is sorted, deleting the last row and re-adding it after the sort. Right now to obtain this I'm using MouseClick Event (to delete the Row) and MouseUp event (to add it), but this is not perfect because if the user click the header, then move the mouse outside the grid and release the pressed button, the MouseUp event is not working.

Is there a better way to do this?

Parents Reply Children
No Data