G
G .Net
Hi
I have a question which I hope you can help with.
I am setting the DataSource of a DataGrid to be a DataView. I am sorting the
DataView by various fields which include a Date.
When I create a new row in the DataGrid and set the date to me within the
current sort range, the newly created row "jumps" to its correct position in
the grid. This obviously makes sense because it is following the sort rule.
However, I would like to be able to achive the following:
(1) Display the DataView in the DataGrid initially sorted using the rules
specified.
(2) New rows can be added to the DataGrid BUT no sorting will occur.
(3) If a button is pressed, then the grid will re-sort using the sort rule
specified initially.
I don't know if it makes any difference but the DataView I am using is
global to the form.
I hope somebody can help.
Many thanks in advance
G
I have a question which I hope you can help with.
I am setting the DataSource of a DataGrid to be a DataView. I am sorting the
DataView by various fields which include a Date.
When I create a new row in the DataGrid and set the date to me within the
current sort range, the newly created row "jumps" to its correct position in
the grid. This obviously makes sense because it is following the sort rule.
However, I would like to be able to achive the following:
(1) Display the DataView in the DataGrid initially sorted using the rules
specified.
(2) New rows can be added to the DataGrid BUT no sorting will occur.
(3) If a button is pressed, then the grid will re-sort using the sort rule
specified initially.
I don't know if it makes any difference but the DataView I am using is
global to the form.
I hope somebody can help.
Many thanks in advance
G