yes , thank you for answer
this event work properly when with mouse chenge selection but when we want jump to special row it doesn't work , sometimes in search result it happens andsometimes itsn't happen
this is my code in selectionchange event
try
{
stu_id = Convert.ToInt64(dataGridView1.CurrentRow.Cells[13].Value);
schoolin_id = Convert.ToInt64(dataGridView1.CurrentRow.Cells[14].Value);
Class = Convert.ToInt32(dataGridView1.CurrentRow.Cells[15].Value);
IList<students> s = new List<students>();
s = D_Students.Search_stu_id(stu_id);
txt_name.Text = s[0].NAME;
txt_family.Text = s[0].FAMILY;
txt_f_name.Text = s[0].FATHER_NAME;
IList<schooling_sign> sd = new List<schooling_sign>();
sd = D_Schooling_Sign.Select_Year(schoolin_id);
txt_schooling.Text = sd[0].YEAR;
txt_class.Text = class_schooling.number_to_schooling(Class);
button2.Enabled = true;
}
catch (Exception) { }
</schooling_sign></schooling_sign></students></students>
3 first line indicate to previose selected row not current selected row
thanks