Click here to Skip to main content
15,921,156 members
Home / Discussions / C#
   

C#

 
AnswerRe: landscape page in crystal report Pin
EliottA14-Oct-09 4:54
EliottA14-Oct-09 4:54 
AnswerRe: landscape page in crystal report Pin
Lyon Sun14-Oct-09 9:37
Lyon Sun14-Oct-09 9:37 
Questionmultiple reports in a single reportviwer Pin
Enobong Adahada14-Oct-09 4:04
Enobong Adahada14-Oct-09 4:04 
AnswerRe: multiple reports in a single reportviwer Pin
EliottA14-Oct-09 4:54
EliottA14-Oct-09 4:54 
GeneralMobile phone programs Pin
Enobong Adahada14-Oct-09 3:59
Enobong Adahada14-Oct-09 3:59 
GeneralRe: Mobile phone programs Pin
Not Active14-Oct-09 4:15
mentorNot Active14-Oct-09 4:15 
GeneralRe: Mobile phone programs Pin
dan!sh 14-Oct-09 4:17
professional dan!sh 14-Oct-09 4:17 
GeneralRe: Mobile phone programs Pin
EliottA14-Oct-09 4:56
EliottA14-Oct-09 4:56 
AnswerRe: Mobile phone programs Pin
solomonope14-Oct-09 7:08
solomonope14-Oct-09 7:08 
QuestionUserControl and Collections in Designer Pin
cinias14-Oct-09 3:10
cinias14-Oct-09 3:10 
AnswerRe: UserControl and Collections in Designer Pin
Henry Minute14-Oct-09 3:41
Henry Minute14-Oct-09 3:41 
Questionbiometric sdk for hp ipaq pda Pin
solomonope14-Oct-09 2:30
solomonope14-Oct-09 2:30 
AnswerRe: biometric sdk for hp ipaq pda Pin
Richard MacCutchan14-Oct-09 3:07
mveRichard MacCutchan14-Oct-09 3:07 
QuestionGetting corrupt data from NetworkStream.Read Pin
JFord123414-Oct-09 1:34
JFord123414-Oct-09 1:34 
AnswerRe: Getting corrupt data from NetworkStream.Read Pin
Richard MacCutchan14-Oct-09 3:20
mveRichard MacCutchan14-Oct-09 3:20 
GeneralRe: Getting corrupt data from NetworkStream.Read Pin
JFord123414-Oct-09 5:51
JFord123414-Oct-09 5:51 
QuestionWebservice and proxy Pin
Mogyi13-Oct-09 23:11
Mogyi13-Oct-09 23:11 
AnswerRe: Webservice and proxy Pin
Keith Barrow14-Oct-09 2:00
professionalKeith Barrow14-Oct-09 2:00 
GeneralRe: Webservice and proxy Pin
Mogyi14-Oct-09 2:15
Mogyi14-Oct-09 2:15 
AnswerRe: Webservice and proxy Pin
Hristo-Bojilov14-Oct-09 2:04
Hristo-Bojilov14-Oct-09 2:04 
GeneralRe: Webservice and proxy Pin
Mogyi14-Oct-09 2:17
Mogyi14-Oct-09 2:17 
QuestionOpening a named browser window from a windows application Pin
mSh198513-Oct-09 22:26
mSh198513-Oct-09 22:26 
QuestionAdding Data to datagridview [modified] Pin
ldsdbomber13-Oct-09 20:36
ldsdbomber13-Oct-09 20:36 
do
      {
          iniText = iniStream.ReadLine();
          // Skip comments started by * character
          if(String.Compare(iniText.Substring(0,1),("*")) == 0)
              continue;

          string [] dataItems = iniText.Split(new Char [] {','});


          dataGridView1.Rows.Add(dataItems);


      } while (iniText != null);


When stepping through the code, dataItems correctly contains each array of comma separated variables, but the datagrid control is not being populated with the Rows.Add method. What am I missing?
t.i.a

OK, I changed it to this

do
{
    iniText = iniStream.ReadLine();
    if (iniText == null)
        continue;
    // Skip comments started by * character
    if(String.Compare(iniText.Substring(0,1),("*")) == 0)
        continue;

    string [] dataItems = iniText.Split(new Char [] {','});

    dataGridView1.Rows.Add(dataItems);

} while (iniText != null);


obviously I need to rethink my loop logic. But when i step through in Debug with F5 it populates the control properly, when I run without debugging, it is still empty. Why does that happen?

modified on Wednesday, October 14, 2009 2:42 AM

AnswerRe: Adding Data to datagridview Pin
OriginalGriff13-Oct-09 23:50
mveOriginalGriff13-Oct-09 23:50 
GeneralRe: Adding Data to datagridview Pin
ldsdbomber14-Oct-09 1:22
ldsdbomber14-Oct-09 1:22 

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.