Scroll issue in Expandable List View

I am using an expandable list view . When i click on a parent , it displays the child information properly . However , when I scroll downwards with my child still collapsed , I get an error -bad request for field slot 0,-1 numrows=3 numcolumns=3 . When I scroll up , there is no problem .Or if my child is not collapsed , then there is no problem in scrolling anywhere.

MY code for simplecursortree adapter :-

        Cursor cursor = db.rawQuery("SELECT _id,words from keywords", null);
                SimpleCursorTreeAdapter mAdapter = new SimpleCursorTreeAdapter(TestActivity.this,
                cursor, R.layout.exprow,
                new String[] { DbHandler.D_WORDS}, new int[] {},
      R.layout.row,new String[] {DbHandler.C_STATUS,DbHandler.C_CREATED_AT,DbHandler.C_USER}, new int[] {,,}) {

            protected Cursor getChildrenCursor(Cursor groupCursor) {
                 dbhandler=new DbHandler(TestActivity.this);
                 SQLiteDatabase db = dbhandler.getReadableDatabase();
                    String get=groupCursor.getString(1);
                    Log.d("Post Operation", "Getting cursor for keyword = " +get);
                    String sql="SELECT status,created_at,user from tweets where words='"+get+"'" ;

                    Cursor cursor = db.rawQuery(sql, null);
                    Log.d("TestActivity","Cursor got count"+cursor.getCount());

                return cursor;


I think there is problem with data for each parent. please check

I solved this by adding an _id in my sql query inside getChildrenCursor . I thought the _id just has to be present in the table .

Need Your Help

making sure no requests are through GET method in the application

grails block http-get

in order to make sure all form submission and all data submitted to server is not through GET I found this piece of code

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.