Click here to Skip to main content
15,893,508 members

Comments by kamal mahdavi (Top 2 by date)

kamal mahdavi 1-May-13 5:43am View    
private void Form1_Load(object sender, EventArgs e)
{
int currentdata = 1000;

dgv_data.FirstDisplayedScrollingRowIndex = currentdata;
dgv_data.Refresh();
dgv_data.CurrentCell = dgv_data.Rows[currentdata].Cells[0];
dgv_data.Rows[currentdata].Selected = true;
kamal mahdavi 1-May-13 5:36am View    
because I have 2 pages... one in menu which shows data in gridview and the second page that include edit button is for editing