Click here to Skip to main content
15,889,200 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with SortedList and call by value Pin
Luc Pattyn23-Oct-07 11:56
sitebuilderLuc Pattyn23-Oct-07 11:56 
Questionerror Pin
memaia23-Oct-07 8:52
memaia23-Oct-07 8:52 
AnswerRe: error Pin
pmarfleet23-Oct-07 9:33
pmarfleet23-Oct-07 9:33 
AnswerRe: error [modified] Pin
Dave Kreskowiak23-Oct-07 9:36
mveDave Kreskowiak23-Oct-07 9:36 
GeneralRe: error Pin
Anthony Mushrow23-Oct-07 10:51
professionalAnthony Mushrow23-Oct-07 10:51 
GeneralRe: error Pin
Luc Pattyn23-Oct-07 11:59
sitebuilderLuc Pattyn23-Oct-07 11:59 
GeneralRe: error Pin
Dave Kreskowiak23-Oct-07 13:54
mveDave Kreskowiak23-Oct-07 13:54 
QuestionHow add data into DataGrid dynamically Pin
A.Asif23-Oct-07 8:25
A.Asif23-Oct-07 8:25 
Hi All,

I am trying to add data into grid but it doesn't work me. Please can anyone take a look my code and tell me what am doing wrong.

Thanks,


//This data grid has two columns and initially has one row

int countVisitorVarRows = 0;

someforLoop
{
if (newVisitorVarRow == true)
{
countVisitorVarRows++;
dataGridView1.Rows.Add(); //adding second row
dataGridView1.Rows[countVisitorVarRows].Cells[0].Value = str4[i]; //get error here outBound index
dataGridView1.Rows[countVisitorVarRows].Cells[1].Value = str3[i]; //get error here outBound index


}

if (newVisitorVarRow == false)
{
dataGridView1.Rows[0].Cells[0].Value = str4[1]; //Inserting value in first row
dataGridView1.Rows[0].Cells[1].Value = str3[1]; //Inserting value in first row

newVisitorVarRow = true; //if true add new rows
}

} //ENd of someforLoop()


AnswerRe: How add data into DataGrid dynamically Pin
pmarfleet23-Oct-07 9:30
pmarfleet23-Oct-07 9:30 
GeneralRe: How add data into DataGrid dynamically Pin
A.Asif23-Oct-07 9:46
A.Asif23-Oct-07 9:46 
GeneralRe: How add data into DataGrid dynamically Pin
pmarfleet23-Oct-07 9:55
pmarfleet23-Oct-07 9:55 
AnswerRe: How add data into DataGrid dynamically Pin
kenprog23-Oct-07 14:46
kenprog23-Oct-07 14:46 
Questioncan't play song ! Pin
whale8423-Oct-07 8:23
whale8423-Oct-07 8:23 
AnswerRe: can't play song ! Pin
pmarfleet23-Oct-07 9:26
pmarfleet23-Oct-07 9:26 
JokeRe: can't play song ! Pin
Luc Pattyn23-Oct-07 12:02
sitebuilderLuc Pattyn23-Oct-07 12:02 
GeneralRe: can't play song ! Pin
pmarfleet23-Oct-07 12:35
pmarfleet23-Oct-07 12:35 
GeneralRe: can't play song ! Pin
Luc Pattyn23-Oct-07 14:20
sitebuilderLuc Pattyn23-Oct-07 14:20 
AnswerRe: can't play song ! Pin
Anthony Mushrow23-Oct-07 10:56
professionalAnthony Mushrow23-Oct-07 10:56 
QuestionC# app using a C++ dll Pin
LCI23-Oct-07 8:22
LCI23-Oct-07 8:22 
AnswerRe: C# app using a C++ dll Pin
Giorgi Dalakishvili23-Oct-07 8:59
mentorGiorgi Dalakishvili23-Oct-07 8:59 
GeneralRe: C# app using a C++ dll Pin
LCI23-Oct-07 12:02
LCI23-Oct-07 12:02 
GeneralRe: C# app using a C++ dll Pin
Luc Pattyn23-Oct-07 12:06
sitebuilderLuc Pattyn23-Oct-07 12:06 
GeneralRe: C# app using a C++ dll Pin
Mohib Sheth23-Oct-07 16:47
Mohib Sheth23-Oct-07 16:47 
GeneralRe: C# app using a C++ dll Pin
LCI24-Oct-07 2:59
LCI24-Oct-07 2:59 
QuestionI can't make a music play with WMP in an aspx page. [modified] Pin
whale8423-Oct-07 7:50
whale8423-Oct-07 7:50 

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.