Hi, You might find useful to set a ViewBinder for the adapter. Have a look at this interface for the SimpleCursorAdapter http://developer.android.com/reference/android/widget/SimpleCursorAdapter.ViewBinder.html
There's only one method which is invoked for each column-to-view bind and it gives you the cursor and the column index so you can easily retrieve the value of a column and based on that evaluate if you want to make the view visible or not by setting the visibility invoking the method setVisibility(). Cheers, On Jun 9, 8:49 pm, sateesh devabhaktuni <[email protected]> wrote: > I have table with 3 columns which is binded to an XML document with > three text views. > > String[] from = new String[]{A,B,C}; > > int [] to = new int[] {R.id.a,R.id.b,R.id.c}; > > Where R.id.a, R.id.b, R.id.c -> TextView > > Depending on the value store in the third column, I have to decide > whether i should display this row or not > > How should, I go about with this. > > This is what I have so far : > > SimpleCursorAdapterentry = newSimpleCursorAdapter(this, > R.layout.addrow, vCursor , from , to); > > setListAdapter(entry); > > If you can provide me an example, that would be really helpful. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

