Subin Thomas

Subin Thomas

  • NA
  • 4.9k
  • 127.1k

cant fetch gridview data !

Jun 7 2019 3:05 AM
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)