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,605

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.12 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Your 5-star is appreciated. Blog: https://okblackcafe.blogspot.com

Helpful?
irum123
Reply
eSparkBiz
  • Forum posts: 107

Jul 11, 2019, 9:30:17 AM via Website

Hello Manjula! I am putting here the link of a video that shows the CRUD example in a Gridview. Hope this will help you.

https://www.youtube.com/watch?v=HLQWCi5q34gScreenshot__35

eSparkBiz Technologies

Helpful?
James Watson
Reply