I want to output the contents of my GridView
to a TextBox
and each row gets its own line. This is what I have right now but it only outputs the first row into the TextBox
for (int i = 0; i < POSDGV.Rows.Count; ++i)
{
string Item = POSDGV.Rows[i].Cells[0].Value.ToString();
string Amount = POSDGV.Rows[i].Cells[1].Value.ToString();
string Receipt = Item + " " + Amount;
Receipttxt.Text = Receipt + "\n";
}
Thx for the help