yes i mean the content of the cell!! i tried your methode (dataGridView1.Cells [1, 1].value;) but "Cells" does not exist (an assembly reference is messing) :/ i tried also ( oConnexion.Open(); reader = command.ExecuteReader(); DataTable DataTable1 = new DataTable(); DataTable1.Load(reader); foreach (DataRow row in DataTable1.Rows) { foreach (DataColumn column in DataTable1.Columns) { MessageBox.Show(column.DataType.ToString()); MessageBox.Show(column.DefaultValue.ToString()); MessageBox.Show(column.ToString()); column.DataType.ToString(); MessageBox.Show(column.Table.Rows[0].ToString()); MessageBox.Show(column.ExtendedProperties.ToString()); textBox1.AppendText(row[column].ToString()); textBox1.AppendText((string)(row[column])); textBox1.AppendText(" | "); } textBox1.AppendText("\r\n--------------\r\n"); } }) but it return the whole column not only one cell :/
M
missoby
@missoby
Posts
-
datagridview c# -
datagridview c#Hello Everyone :) I begin to develop an application using C #, but I can not handle the DataGridView has actually :sigh: I manage to display data from a table but after posting I need to recover the contained of a cell but I can not :( !! in fact I want to use the datagrid to manage user profile (add, edit and delete). pleaaaaaaase i need your helppp !!!!! :(