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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Count of visible records

Thread ID:

Created:

Updated:

Platform:

Replies:

106063 Dec 7,2012 10:23 AM UTC Dec 13,2012 05:36 PM UTC WPF 1
loading
Tags: GridControl
Adrian
Asked On December 7, 2012 10:23 AM UTC

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
 
 

Rajasekar G [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;