get error from VS2005 saying that DataGridRow is inaccessible due to its protection level??
Formatting TextBox Data
Collapse
X
-
I've been trying to get the below working...
Code:DataGridViewColumn dc = dataGridView1.Columns[9]; string mytext = ""; foreach (DataGridViewRow dr in dataGridView1.Rows) { mytext = dr.Cells[dc.Index].Value.ToString(); //you may also chose to have a "<br/>" appended to the end of each row's item here } string myform = mytext.Replace(Environment.NewLine, "<br />");
thanks.Comment
Comment