카테고리 없음
왜 안되는지 확인 필요
joo_coding
2025. 11. 7. 11:01
private void MainGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
try
{
DataGridViewRow row = MainGrid.Rows[e.RowIndex];
Console.WriteLine($"row: {row}");
Console.WriteLine($"e.RowIndex: {e.RowIndex}");
string name = row.Cells[e.RowIndex].Value.ToString();
DetailForm detailForm = new DetailForm();
detailForm.ShowDialog();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}