Click here to Skip to main content
16,010,544 members
Home / Discussions / C#
   

C#

 
GeneralRe: switch off computer Pin
likefood27-Jan-09 15:58
likefood27-Jan-09 15:58 
QuestionLinq to SQL question Pin
PaulPrice26-Jan-09 5:21
PaulPrice26-Jan-09 5:21 
AnswerRe: Linq to SQL question Pin
Wendelius26-Jan-09 9:00
mentorWendelius26-Jan-09 9:00 
QuestionHow to have access the drivers and API? Pin
Alex_xso26-Jan-09 5:16
Alex_xso26-Jan-09 5:16 
AnswerRe: How to have access the drivers and API? Pin
EliottA26-Jan-09 5:32
EliottA26-Jan-09 5:32 
GeneralRe: How to have access the drivers and API? Pin
WebMaster26-Jan-09 5:45
WebMaster26-Jan-09 5:45 
QuestionEmpty cell in gridview Pin
Raskelmos26-Jan-09 4:51
Raskelmos26-Jan-09 4:51 
AnswerRe: Empty cell in gridview Pin
Jim (SS)26-Jan-09 11:35
Jim (SS)26-Jan-09 11:35 
I just did this a couple of days ago. Check for rows[i].Cells[j].Value == null. If my whole row is null I don't send that row since the gridview automatically creates the row and I may not have used it. Otherwise, set the data for that cell to "" so it doesn't cause an error.

string getCellValue(int row, int cell)
{
   string rtn = "";

   if (dataGridView1.Rows[row].Cells[0].Value != null) {
      rtn = dataGridView1.Rows[i].Cells[0].Value.ToString();
   }

   return rtn;
}


But I like this better

string getCellValue(DataGridViewCell cell)
{
   return (cell.Value != null ? cell.Value.ToString() : "");
}


SS => Qualified in Submarines

"We sleep soundly in our beds because rough men stand ready in the night to visit violence on those who would do us harm". Winston Churchill

QuestionParsing Log Files Pin
alwaysthinking26-Jan-09 4:24
alwaysthinking26-Jan-09 4:24 
AnswerRe: Parsing Log Files Pin
Manas Bhardwaj26-Jan-09 4:29
professionalManas Bhardwaj26-Jan-09 4:29 
AnswerRe: Parsing Log Files Pin
Mustafa Ismail Mustafa26-Jan-09 4:41
Mustafa Ismail Mustafa26-Jan-09 4:41 
GeneralRe: Parsing Log Files Pin
alwaysthinking26-Jan-09 4:59
alwaysthinking26-Jan-09 4:59 
GeneralRe: Parsing Log Files Pin
Mark Churchill26-Jan-09 14:44
Mark Churchill26-Jan-09 14:44 
GeneralRe: Parsing Log Files Pin
Mustafa Ismail Mustafa26-Jan-09 23:49
Mustafa Ismail Mustafa26-Jan-09 23:49 
Question[Message Deleted] Pin
hkjghkj126-Jan-09 3:34
hkjghkj126-Jan-09 3:34 
AnswerRe: CopyFromScreen() question. Pin
PIEBALDconsult26-Jan-09 5:20
mvePIEBALDconsult26-Jan-09 5:20 
General[Message Deleted] Pin
hkjghkj126-Jan-09 6:50
hkjghkj126-Jan-09 6:50 
GeneralRe: CopyFromScreen() question. Pin
PIEBALDconsult26-Jan-09 7:08
mvePIEBALDconsult26-Jan-09 7:08 
QuestionHow do I bounce an old thread? Pin
Butter18526-Jan-09 3:29
Butter18526-Jan-09 3:29 
AnswerRe: How do I bounce an old thread? Pin
benjymous26-Jan-09 3:59
benjymous26-Jan-09 3:59 
GeneralRe: How do I bounce an old thread? Pin
Mustafa Ismail Mustafa26-Jan-09 4:08
Mustafa Ismail Mustafa26-Jan-09 4:08 
GeneralRe: How do I bounce an old thread? Pin
Butter18526-Jan-09 6:27
Butter18526-Jan-09 6:27 
GeneralRe: How do I bounce an old thread? Pin
benjymous26-Jan-09 22:09
benjymous26-Jan-09 22:09 
AnswerRe: How do I bounce an old thread? Pin
Mustafa Ismail Mustafa26-Jan-09 4:04
Mustafa Ismail Mustafa26-Jan-09 4:04 
GeneralRe: How do I bounce an old thread? Pin
J4amieC26-Jan-09 4:27
J4amieC26-Jan-09 4:27 

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.