How do I copy all the datagrid column content to a textbox?
also how do I separate each with a colon and a space?
ThanksVisual C#: Copy Datagrid column content to textbox?
int iColumnIndex = 0;
string sColumns = string.empty;
foreach(DataGridViewRow oRow in dataGrid.Rows)
{
sColumns += oRow.Cells[iColumnIndex].ToString() + ';: ';;
}
textBox.Text = sColumns;Visual C#: Copy Datagrid column content to textbox?
Projects And Programming Helps-
http://hobbyprojects.org/
No comments:
Post a Comment