You can use this....
private void buttonSetCurrentCell_Click(object o, EventArgs e)
{
DataGridCell currentCell;
string currentCellData;
// Get the text to put into the current cell.
currentCellData = textBoxCurrentCell.Text;
// Get the current cell.
currentCell = dataGrid.CurrentCell;
// Set the current cell's data.
dataGrid[currentCell.RowNumber,currentCell.ColumnNumber] = currentCellData;
//Change currentCell.RowNumber to your numbers and Column as well
}
"michael Schindler" <mr******@hotmail.com> wrote in message
news:ep*************@tk2msftngp13.phx.gbl...
How i can set in a datagrid in c# widows forms in a specifig cell example
Row 3 column 4 a specifig data for example "Michael"?
I want after the user give in a cell in my datagrid additionally datas set
in the same row but in a other column but automaticly.
Is that possible an how I can realize that?
thanks
Michael