0
templatefield를 사용하여 Gridview에서 Textbox를 사용하고 있습니다. 모두 잘 작동합니다. 하지만 내 문제는 텍스트 상자에 포커스가있을 때마다 gridview의 rowindex가 필요하다는 것입니다.
도와 주시겠습니까? 사전에 감사asp.net에서 포커스 이벤트 Gridview 텍스트 상자에서 rowindex를 얻는 방법 C#
templatefield를 사용하여 Gridview에서 Textbox를 사용하고 있습니다. 모두 잘 작동합니다. 하지만 내 문제는 텍스트 상자에 포커스가있을 때마다 gridview의 rowindex가 필요하다는 것입니다.
도와 주시겠습니까? 사전에 감사asp.net에서 포커스 이벤트 Gridview 텍스트 상자에서 rowindex를 얻는 방법 C#
어쩌면이 DataGridViewCell.RowIndex Property
private void getCurrentCellButton_Click(object sender, System.EventArgs e)
{
string msg = String.Format("Row: {0}, Column: {1}",
dataGridView1.CurrentCell.RowIndex,
dataGridView1.CurrentCell.ColumnIndex);
MessageBox.Show(msg, "Current Cell");
}