Click here to Skip to main content
15,911,306 members

Comments by Star Hostani (Top 1 by date)

Star Hostani 7-Feb-15 5:24am View    
i want to get the value of the cells that user clicked
for (int i = 0; i < 1000; i++)
{
int num = Convert.ToInt32(dataGridView1.Rows[i].Cells[4].Value);
MessageBox.Show(num.ToString());

}
i wrote that code but actually it is not the same thing that i want because i want to get it and then use it in another place