Click here to Skip to main content
12,242,460 members (53,377 online)
   

C#

 
QuestionRe: Detect mouse over & out on minimize SDI window in MDI application c# Pin
Eddy Vluggen12-May-11 4:30
memberEddy Vluggen12-May-11 4:30 
AnswerRe: Detect mouse over & out on minimize SDI window in MDI application c# Pin
Eddy Vluggen12-May-11 4:31
memberEddy Vluggen12-May-11 4:31 
Question"Input string was not in a correct format." when updating datatable... [modified] Pin
pradeep45511-May-11 20:07
memberpradeep45511-May-11 20:07 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
rushijoshi11-May-11 20:42
memberrushijoshi11-May-11 20:42 
I think you are getting error when trying to convert DateTime values.

A DateTime value "{6/1/1998 12:00:00 AM}" has a space and it tries to convert to "{6/1/1998% 12:00:00 AM}" which is not valid.

Change to below code to resolve this.

if (row[column].ToString().Contains(" ") &&  column.DataType != Type.GetType("System.DateTime") )
                    {
                        temp = row[column].ToString().Replace(" ", "%");
                        row[column] = temp; //getting error in this line...
                    }

Regards
Rushi
GeneralRe: "Input string was not in a correct format." when updating datatable... Pin
pradeep45511-May-11 21:03
memberpradeep45511-May-11 21:03 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Subin Mavunkal11-May-11 20:55
memberSubin Mavunkal11-May-11 20:55 
GeneralRe: "Input string was not in a correct format." when updating datatable... [modified] Pin
pradeep45511-May-11 21:05
memberpradeep45511-May-11 21:05 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Subin Mavunkal11-May-11 22:35
memberSubin Mavunkal11-May-11 22:35 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
OriginalGriff11-May-11 22:44
mvpOriginalGriff11-May-11 22:44 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
OriginalGriff11-May-11 22:42
mvpOriginalGriff11-May-11 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 30 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid