This is the the code that I am using.
C#
private void btn_fetch_Click(object sender, EventArgs e)
{
string result = "";
string part1 = "";
string part2 = "";
for (int i = 1; i 0].Value.ToString();
part2 = DGV_CsvFile.Rows[i].Cells[1].Value.ToString();
result =result + part1+" : "+part2+"\n";
}
}
"Object reference not set to an instance of an object."
and it selects the first line of the loop.
Need urgent help fellows.
Thanx in advance.

Mamta MRank #268 · 9.4K reputationPosted Jul 21, 2010, 10:29 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Jul 21, 2010, 10:48 AM EDT
private void btn_fetch_Click(object sender, EventArgs e)
Sam HobbsRank #107 · 20.5K reputationPosted Jul 21, 2010, 5:51 PM EDT