Hi,
I am implementing a functionality that I have to search from the rows in the grid using Foreach
For example Foreach(var row in rows){...}
But for improve the performance of the search, especially in a big database, I would like to only search the rows which are shown in the browser and do not search those are not yes shown to the user.
How could I know if the row is in the view that I can see?
Thanks!
Hello,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you for your post. I have been reading though it and sine the XamGrid is virtualizing the UI elements that represents the Rows and the Cells you can determine whether a Row is visible by checking its Control property and it is different from null, the row is in the visible area. For example :
foreach (Row row in xamGrid1.Rows) { if (row.Control != null) { //do something } }
You can also refer to the following forum thread, which discuss the same topic: http://community.infragistics.com/forums/p/58457/297414.aspx#
Please let me know if you need any further assistance on the matter please do not hesitate to ask.