HOW TO TAKE SELECTED ROW VALUES FROM DATAGRIDVIEW IN C# VB.NET
============================================================================
private void dataGridViewdetais_CellClick(object sender, DataGridViewCellEventArgs e)
{
string refno=dataGridViewdetais.CurrentRow.Cells[1].Value.ToString();
string id = dataGridViewdetais.CurrentRow.Cells[0].Value.ToString();
}
=================================================================================
No comments:
Post a Comment