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
3305
is there a way to programmaically tell if a column has been sorted?
posted

I have a grid that uses external "Add"Row" controls all works fine if the grid sort is the "Default"

however if you swith the sort and they are now descending this code won't work

 

 

 

case "AddValue"

:

 

 

QualificationValue val = QualificationValue

.CreateNew();

val.QualificationID = _vm.SelectedQualificationList.QualificationID;

val.ItemValue =

 

""

;

_vm.obsValueList.Insert(

 

0

, val);

 

 

try

{

 

 

Row r = grdSelectedVals.Rows[0

];

 

 

Cell c = (Cell)r.Cells[1

];

r.IsSelected =

 

true

;

grdSelectedVals.EnterEditMode(r, c);

grdSelectedVals.IsEnabled =

 

true

;

_vm.IsDirty =

 

true

;

}

 

 

catch (Exception

ex)

{

 

 

throw

ex;

it will go the the first row in the grid and relapce the exisitn value.

is there a wasy I can test the sort of the column so i know whether or not to select row ")" or the last row in the grid?