Hi nadeem1218,
I have checked your code with the data and its exporting without any problem.
There might be the problem with your data. You data contain \r or \n in between the string like below. That will break the line in the csv.
Uber September 28 2017 \r Opening Shift from store1 to store two and go back home \r 25+30=55
Uber September 28 2017 \n Opening Shift from store1 to store two and go back home \n 25+30=55
So to overcome to these issues replace
nadeem1218 says:
Sb.Append(grvCashOutReport.Rows[i].Cells[k].Text +
','
);
above with the below code and check.
Sb.Append(grvCashOutReport.Rows[i].Cells[k].Text.Replace("\n", "").Replace("\r", "") + ',');