Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
QuestionDateTime problem??? Pin
Neo Andreson3-Feb-08 18:17
Neo Andreson3-Feb-08 18:17 
AnswerRe: DateTime problem??? Pin
xString3-Feb-08 19:47
xString3-Feb-08 19:47 
General[Message Deleted] Pin
Neo Andreson3-Feb-08 17:33
Neo Andreson3-Feb-08 17:33 
GeneralRe: How to convert string to DateTime??? Pin
Expert Coming3-Feb-08 17:41
Expert Coming3-Feb-08 17:41 
GeneralRichtextbox color change dinamically Pin
gericooper3-Feb-08 17:12
gericooper3-Feb-08 17:12 
GeneralRe: Richtextbox color change dinamically Pin
gericooper4-Feb-08 6:07
gericooper4-Feb-08 6:07 
GeneralRe: Richtextbox color change dinamically Pin
gericooper4-Feb-08 7:03
gericooper4-Feb-08 7:03 
GeneralA better way for DBNull Pin
Jacob Dixon3-Feb-08 15:45
Jacob Dixon3-Feb-08 15:45 
This is not working in my program, which is weird because it worked in the last one I am making... the difference is that the last one i used SQL database and this new one I am using a Access database... the null probably is still set to DBNull..

foreach (DataGridViewRow d in theTableDataGridView.Rows)
{
if (DBNull.Value == d.Cells[0].Value) ;
else richTextBoxPrintCtrl1.Text += String.Format("{0}\n", d.Cells[0].Value.ToString());
}

it still comes up with an error and the weird thing is, is that the cell is actually not null!

Really I need a better way of doing this, so if you have any ideas please let me know.. what it is suppose to do is go through each row and column, determine if the cell is null (empty), if it is empty then do nothing (skip to next step), if it isn't then print the value of that cell onto a textbox.
GeneralRe: A better way for DBNull Pin
Guffa3-Feb-08 16:46
Guffa3-Feb-08 16:46 
GeneralRe: A better way for DBNull Pin
PIEBALDconsult3-Feb-08 16:52
mvePIEBALDconsult3-Feb-08 16:52 
GeneralRe: A better way for DBNull Pin
Jacob Dixon3-Feb-08 17:13
Jacob Dixon3-Feb-08 17:13 
GeneralRe: A better way for DBNull Pin
Jacob Dixon3-Feb-08 16:54
Jacob Dixon3-Feb-08 16:54 
GeneralRe: A better way for DBNull Pin
Jacob Dixon3-Feb-08 16:57
Jacob Dixon3-Feb-08 16:57 
GeneralRe: A better way for DBNull Pin
Vikram A Punathambekar3-Feb-08 17:02
Vikram A Punathambekar3-Feb-08 17:02 
GeneralRe: A better way for DBNull Pin
Jacob Dixon3-Feb-08 17:05
Jacob Dixon3-Feb-08 17:05 
General[Message Deleted] Pin
Jacob Dixon3-Feb-08 17:07
Jacob Dixon3-Feb-08 17:07 
GeneralRe: A better way for DBNull Pin
Expert Coming3-Feb-08 17:39
Expert Coming3-Feb-08 17:39 
GeneralRe: A better way for DBNull Pin
Jacob Dixon3-Feb-08 18:50
Jacob Dixon3-Feb-08 18:50 
GeneralRe: A better way for DBNull Pin
Vikram A Punathambekar4-Feb-08 5:45
Vikram A Punathambekar4-Feb-08 5:45 
GeneralRe: A better way for DBNull Pin
Jacob Dixon4-Feb-08 13:40
Jacob Dixon4-Feb-08 13:40 
QuestionHow do i upload files to my ftp using C# ( Windows Application, NOT ASP) Pin
luisgrimaldo3-Feb-08 15:30
luisgrimaldo3-Feb-08 15:30 
AnswerRe: How do i upload files to my ftp using C# ( Windows Application, NOT ASP) Pin
Vikram A Punathambekar3-Feb-08 15:52
Vikram A Punathambekar3-Feb-08 15:52 
AnswerRe: How do i upload files to my ftp using C# ( Windows Application, NOT ASP) Pin
Patrick Etc.3-Feb-08 15:52
Patrick Etc.3-Feb-08 15:52 
AnswerRe: How do i upload files to my ftp using C# ( Windows Application, NOT ASP) Pin
Hamed Musavi3-Feb-08 15:53
Hamed Musavi3-Feb-08 15:53 
AnswerRe: How do i upload files to my ftp using C# ( Windows Application, NOT ASP) Pin
Pete O'Hanlon3-Feb-08 21:59
mvePete O'Hanlon3-Feb-08 21:59 

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.