Gridview using SQLite

  • Replies:2
Manjula
  • Forum posts: 10

Jul 7, 2019, 9:10:18 AM via Website

I have 3 fields in table.
Id(Primary Key,AutoIncrement),Name,Marks.After inserting i have displayed the records(Only column - Name and Marks ) in gridview from database.i need to update the record on clicking the row in gridview,i need to get the id of the particular row.So that by using the id i can update the record in database.But my problem is how to fetch the id of the particular row without displaying the Id column in the Gridview.I searched a lot but i cant find any solution for this.Can anyone pls help me?I cant find solution for this?Is this possible or not in Gridview

Reply
James Watson
  • Forum posts: 1,584

Jul 7, 2019, 12:57:59 PM via Website

I think you may implement a custom adapter to render the grid items from your SQLite DB.

Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
irum123
Reply