Datagrid column with 'NaN' displayed causes IndexOutOfBounds Error

  • Thread starter Thread starter Ron P
  • Start date Start date
R

Ron P

anyone come across this problem were the user tries to sort the a
Double type column in a datagrid that has some 'NaN' ( not a number )
displayed that causes the frame work to throw a indexOutOfBounds?

apart from preventing these columns from being sorted how do you get
around it?

Ron
 
Ron

You could always change the NaN values to be something more meaningful - i am sure the user would appreciate that too

You can subscribe to the ItemDataBound event on the DataGrid and process the NaN column to display a zero, -1 or something more meaningful

HT

RS
 
Back
Top