in the search form by display button records are displayed from database....but i wnt to change the header text of data grid column like member_id as memberID....
how can i do it
as i m tring


it shows error of indexes of collection so what code i will use to change the header text....!!!!

Is should be like this:

datagridview1.columns[1].HeaderText = "memberID";

columns at index 1 means that the code will chnage the header text in the 2nd column (looking from left to right).