9
Answers

cant fetch gridview data !

Subin Thomas

Subin Thomas

5y
734
1
i have a gridview1 and to get its data of select button field
  1. int rowIndex = Convert.ToInt32(e.CommandArgument);  
  2.    
  3.         GridViewRow row = GridView1.Rows[rowIndex];  
  4.         string country = row.Cells[1].Text;  
 in this index 1 is giving me null on runtime
 
how to get value ? 
Answers (9)