How do I get the value a cell in a datagrid
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Hi, I would like to get the value of a cell in a datagrid. I tried the ff code but it gave me an error: string value = dgOutput.CurrentCell.Value.ToString(); Please help.
Mvelo Walaza Developer Telkom SA
-
Hi, I would like to get the value of a cell in a datagrid. I tried the ff code but it gave me an error: string value = dgOutput.CurrentCell.Value.ToString(); Please help.
Mvelo Walaza Developer Telkom SA
If you want to access a cell other than the currently selected
dgOutput.Rows[rowindex].Cells[columnindexORname]
Eslam Afifi