We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Count of visible records

Hello
Does the GridDataControl expose a Collection like property of the rows that are visible in the Grid?
This would be useful after the user has filtered the Grid.
Also there doesn't seem to be any Events or Properties to allow a Developer to capture when filtering takes place.
Thanks
 
 

1 Reply

RG Rajasekar G Syncfusion Team December 13, 2012 05:36 PM UTC

Hi Adrian,

 

Thank you for using Syncfusion products.

 

We have analyzed your query and you can achieve your requirement by using the following code snippet.

 

Code Snippet[C#]:

private void RecordCount_Click(object sender, RoutedEventArgs e)

{

    int count = this.SyncGrid.Model.View.Records.Count;

    MessageBox.Show("Record Count :"+ count.ToString());

}

 

We have prepared a sample based on this and it can be download from the following location.

 

Sample Location: GridDataControlRecordCount.zip

 

Note:

 

·         Run the sample.

·         Filter the records  though filter bar.

·         Click the Get record count button to get the record count

 

Please let us know if you have any questions.

 

Regards,

Raja sekar.G


Loader.
Live Chat Icon For mobile
Up arrow icon