We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

set values in range (or ranges) and sorting

Hi, following scenario: - DataBoundGrid with sorted integer column. - currencymanager is in use. - range over a part of cells in these (sorted) column. - a method fill the ranged cells with varios integers. and now the problem: the positions of the rows in the grid will be changed while sorted. the top and bottom property of the range is now not synchroniced with the actual view on the rows. is it possible to stop the columnsort (dont reset the sort) while operations in ranges are in progress? suspendBinding is not the solution in this case. greetings markus

1 Reply

Administrator October 21, 2003 01:35 PM UTC

I don't know of a good way to do this. You could go through the range and prepare a hashtable that uses the primary key and column name as the the hashtable key and the value being the value you want to place in the table. Once you have this hashtable, you could just directly update the underlying table, finding the proper row through the primary key, and the proper column through the column name. This would change working through the grid (which is tied to the changing dataview) to working directly with the DataTable which would not be changing....
Live Chat Icon For mobile
Up arrow icon