show data in android using gridview from database
问题 I want to display data, from a database, in a gridview. Means I have a data in my table (let it's a customer detail) and I want to show it in gridview (or any other control to display details) same as we done in asp.net. Solution:-- public void FillGrid() { DatabaseHelper dbh = new DatabaseHelper(this); dbh.openDataBase(); Cursor cursor; GridView grv = (GridView) findViewById(R.id.grvData); cursor = dbh.getGridData(); dbh.close(); if (cursor != null) { startManagingCursor(cursor);