GridGroupingControl GetRecordCount

Hi, I''ve found that the grid.Table.GetRecordCount() method returns 0 when it is called soon after filling a grid (using a data Adapter), even when I know that records are returned. I''m probably checking it too quickly ... is there some call I can make to "synchronize" the internal state of the grid before calling for the count? Thanks. Ross.

1 Reply

AD Administrator Syncfusion Team June 21, 2005 03:14 PM UTC

If you reference a table variable directly, it should trigger the initialization. int count = grid.Table.Records.Count;

Loader.
Up arrow icon