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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top