Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
GeneralRe: lock touchpad Pin
Dan Neely4-Dec-06 2:12
Dan Neely4-Dec-06 2:12 
GeneralRe: lock touchpad Pin
DarsVaeda4-Dec-06 12:04
DarsVaeda4-Dec-06 12:04 
QuestionChanging the datatype of strings Pin
minnie mouse3-Dec-06 11:37
minnie mouse3-Dec-06 11:37 
AnswerRe: Changing the datatype of strings Pin
Christian Graus3-Dec-06 11:52
protectorChristian Graus3-Dec-06 11:52 
GeneralRe: Changing the datatype of strings Pin
minnie mouse3-Dec-06 12:06
minnie mouse3-Dec-06 12:06 
GeneralRe: Changing the datatype of strings Pin
kourvoisier3-Dec-06 12:25
kourvoisier3-Dec-06 12:25 
GeneralRe: Changing the datatype of strings Pin
minnie mouse4-Dec-06 21:18
minnie mouse4-Dec-06 21:18 
GeneralRe: Changing the datatype of strings Pin
Christian Graus3-Dec-06 12:35
protectorChristian Graus3-Dec-06 12:35 
minnie mouse wrote:
Excuse my lack of experience with this Christian but how do I apply this to all the values in my datatable.


Your core problem is that your database design is wrong. As it stands, you need to create a new column in your datatable, and copy the values across using SQL. Then delete the old table. I'm not sure that you can just change the type of a column.


minnie mouse wrote:
I also forgot to say that all of the columns have a header row that has to remain as a string,


Is this a database we're talking about ? A header is obvioulsy a string. It's the name of the column.


minnie mouse wrote:
so i guess what i have to do is cycle through all the individual cells in the datatable and convert the ones that can be converted with TryParse, is this correct ?


To do this in memory, and keep your database in this less than useful format, yes. I think someone else gave you some sample code.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: Changing the datatype of strings Pin
minnie mouse4-Dec-06 11:33
minnie mouse4-Dec-06 11:33 
GeneralRe: Changing the datatype of strings Pin
Christian Graus4-Dec-06 11:39
protectorChristian Graus4-Dec-06 11:39 
GeneralRe: Changing the datatype of strings Pin
minnie mouse4-Dec-06 21:13
minnie mouse4-Dec-06 21:13 
AnswerRe: Changing the datatype of strings Pin
KeesVer4-Dec-06 1:11
KeesVer4-Dec-06 1:11 
QuestionMenu Events Pin
Mark F.3-Dec-06 9:48
Mark F.3-Dec-06 9:48 
AnswerRe: Menu Events Pin
mav.northwind3-Dec-06 10:09
mav.northwind3-Dec-06 10:09 
Questionsearch in access database Pin
suma123823-Dec-06 7:27
suma123823-Dec-06 7:27 
QuestionSynchronized in C# Pin
gaotter3-Dec-06 6:30
gaotter3-Dec-06 6:30 
AnswerRe: Synchronized in C# Pin
Nader Elshehabi3-Dec-06 8:20
Nader Elshehabi3-Dec-06 8:20 
AnswerRe: Synchronized in C# Pin
Judah Gabriel Himango3-Dec-06 12:24
sponsorJudah Gabriel Himango3-Dec-06 12:24 
QuestionSyntax error in INSERT INTO statement. Pin
VirtualG3-Dec-06 5:54
VirtualG3-Dec-06 5:54 
AnswerRe: Syntax error in INSERT INTO statement. Pin
Guffa3-Dec-06 7:28
Guffa3-Dec-06 7:28 
GeneralRe: Syntax error in INSERT INTO statement. Pin
VirtualG3-Dec-06 8:55
VirtualG3-Dec-06 8:55 
QuestionFiltering the Gridview Pin
fahiemulleh3-Dec-06 4:31
fahiemulleh3-Dec-06 4:31 
QuestionDOM class Pin
h@s@n3-Dec-06 3:38
h@s@n3-Dec-06 3:38 
AnswerRe: DOM class Pin
George L. Jackson3-Dec-06 4:40
George L. Jackson3-Dec-06 4:40 
Questionpublic variable Pin
microuser_20003-Dec-06 3:34
microuser_20003-Dec-06 3:34 

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.