This is a migrated thread and some comments may be shown as answers.

Gridview throwing unexpected error

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sree
Top achievements
Rank 1
Sree asked on 21 Mar 2013, 02:03 AM
Hello Team,
I faced a situation where gridview is throwing some expected which i am unable to catch


i have a gridview,where user adding data to it the grid, through .csv file means user imports .csv file data to datagrid and then clicks button clear which make the grid datasource to null,
which is datagrid.datasource=null; now if entered any string value in the grid it is throwing this expecption

Step By Step: user clicked Add field values

user selects the .csv file to import data into grid

Data imported from .csv to grid



Now clicks Clear button to clear the data in the grid, here when user clicks the clear button i am making the datasource of the grid to null

now user enters some string value in the grid




Now press tab, its throwing the error

input string was not in correct format and i dont know where to capture the error and how to handle, can you please help me

Regards
Lakshmi

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Mar 2013, 04:20 PM
Hello Lakshmi,

Thank you for writing.

Would it be possible for you to send me a small application with a grid and a sample csv file where I can reproduce the error, so I can investigate what causes it and find the best solution for it.

I am looking forward to your reply.
 

All the best,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
GridView
Asked by
Sree
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or