I am usign the code below to find the current row and cell. Which works OK.
Then hwat I want to do is get the value of each other cell in the row. So
below I am trying to get at least one values. The last line gives me an error
that I am not passing the correct arguments. But I am passing two integers,
one for the row and one for the cell. Any ideas how I can achieve this feat?
// gets the current row and cell being edited.
string msg = String.Format("Row: {0}, Column: {1}",
scriptDataGridView.CurrentCell.RowIndex,
scriptDataGridView.CurrentCell.ColumnIndex);
//MessageBox.Show(msg, "Current Cell");
rowNumber = msg.Substring(5, 1);
colNumber = msg.Substring(16, 1);
int.Parse(rowNumber);
int.Parse(colNumber);
command = scriptDataGridView[colNumber, rowNumber].FormattedValue.ToString();