Well, I found it on msdn. It looks like this:
DataGridCell currentCell;
string currentCellData;
// Get the current cell.
currentCell = dgApplication.CurrentCell;
// Get the current cell's data.
currentCellData =
dgApplication[currentCell.RowNumber,currentCell.ColumnNumber].ToString();
// Set the TextBox's text to that of the current cell.
MessageBox.Show(currentCellData);
Regards
Marre
"Marre" <ne**@supremelink.se> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi all!
I have made a datagrid on a winform and want to get the text out of the
first cell when I have the row selected. Lets say I have a grid with som
info and want to view more info about the selected row, how do I do that?
Regards
Marre