Sunday, January 11, 2009

Getting a row count from datasource

Query: How to get the total row count from form datasource.

Answer: use datasource.numberOfRowsLoaded()

4 comments:

  1. It is returning -1 for me always. Is there anything special need to do?

    ReplyDelete
  2. Sorry! My bad. Using the wrong property. It works. Thanks.

    ReplyDelete
  3. Hi this only selects number of rows loaded, not number in datasource - for example number displayed by a grid on a form before scrolling

    ReplyDelete