Danish Habib

Danish Habib

  • NA
  • 694
  • 233.4k

How to get the Id of Text from Gridview

Feb 23 2016 2:41 AM
I have a gridview and in which i am using join to get the text value like country 
i am saving country ID in my table but when it comes to show in grid view item tamplates i am joining this table with another table where the country name is present so i am showing the name of the country .
 
 
Now when i want to delete the row i have a textvalue instaed of id like for country i have JAPAN but i want to pass the ID of JAPAN instead of the Name because in my table i have saved the ID .
 
How to do that  like in below grid i have district Text while deleting the record i want the ID because in my db i have saved the ID instead of text

Answers (2)