Click here to Skip to main content
16,016,562 members
Home / Discussions / C#
   

C#

 
GeneralRe: "Input string was not in a correct format." when updating datatable... Pin
siva45511-May-11 20:03
siva45511-May-11 20:03 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Subin Mavunkal11-May-11 19:55
Subin Mavunkal11-May-11 19:55 
GeneralRe: "Input string was not in a correct format." when updating datatable... [modified] Pin
siva45511-May-11 20:05
siva45511-May-11 20:05 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Subin Mavunkal11-May-11 21:35
Subin Mavunkal11-May-11 21:35 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
OriginalGriff11-May-11 21:44
mveOriginalGriff11-May-11 21:44 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
OriginalGriff11-May-11 21:42
mveOriginalGriff11-May-11 21:42 
GeneralRe: "Input string was not in a correct format." when updating datatable... Pin
siva45512-May-11 0:49
siva45512-May-11 0:49 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Luc Pattyn12-May-11 0:57
sitebuilderLuc Pattyn12-May-11 0:57 
I already provided you with what may be essential information here[^].

However you did not provide sufficient information to come up with the definitive answer. What column type is it? how does it get formatted? Are you using an explicit Cell Style? Are you using the CellFormatting event? Do you want to change the value itself, or just how it looks when shown in the DGV?


pradeep455 wrote:
if (row[column].ToString().Contains(" "))
{
tem = row[column].ToString().Replace(" ", "%");
row[column] = temp; //getting error in this line...
}


I am not surprised you are getting an error here: if the cell is a string type, then ToString() is redundant; so I'll assume the cell isn't holding a string. Now how could you assign a string value to it then?

So rather than asking over and over again, please just ask once and provide all that is required.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: "Input string was not in a correct format." when updating datatable... [modified] Pin
siva45515-May-11 19:43
siva45515-May-11 19:43 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Luc Pattyn15-May-11 23:09
sitebuilderLuc Pattyn15-May-11 23:09 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
BobJanova12-May-11 2:03
BobJanova12-May-11 2:03 
Questionproblem with unicode. [modified] Pin
prasadbuddhika11-May-11 5:48
prasadbuddhika11-May-11 5:48 
AnswerRe: problem with unicode Pin
Luc Pattyn11-May-11 5:51
sitebuilderLuc Pattyn11-May-11 5:51 
GeneralRe: problem with unicode. Pin
prasadbuddhika11-May-11 6:30
prasadbuddhika11-May-11 6:30 
GeneralRe: problem with unicode. Pin
Luc Pattyn11-May-11 6:54
sitebuilderLuc Pattyn11-May-11 6:54 
GeneralRe: problem with unicode. Pin
prasadbuddhika11-May-11 7:15
prasadbuddhika11-May-11 7:15 
AnswerRe: problem with unicode. Pin
David198711-May-11 6:05
David198711-May-11 6:05 
GeneralRe: problem with unicode. Pin
prasadbuddhika11-May-11 6:28
prasadbuddhika11-May-11 6:28 
GeneralRe: problem with unicode. Pin
David198711-May-11 6:46
David198711-May-11 6:46 
GeneralRe: problem with unicode. Pin
Peter_in_278011-May-11 14:47
professionalPeter_in_278011-May-11 14:47 
GeneralRe: problem with unicode. Pin
David198711-May-11 19:58
David198711-May-11 19:58 
GeneralRe: problem with unicode. Pin
Peter_in_278011-May-11 20:40
professionalPeter_in_278011-May-11 20:40 
GeneralRe: problem with unicode. Pin
David198711-May-11 20:46
David198711-May-11 20:46 
GeneralRe: problem with unicode. Pin
Peter_in_278011-May-11 20:58
professionalPeter_in_278011-May-11 20:58 
GeneralRe: problem with unicode. Pin
David198711-May-11 21:05
David198711-May-11 21:05 

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.