Posted on Jan 29, 2012 (permalink)
Reply
Posted on Jan 31, 2012 (permalink)
You can get the rows that are visible by accessing the VisualRows property of GridTableElement:
public
IEnumerable<GridViewDataRowInfo> GetVisibleDataRows()
{
foreach
(GridRowElement rowElement
in
this
.myRadGridView1.TableElement.VisualRows)
if
(rowElement.RowInfo
is
GridViewDataRowInfo)
yield
return
rowElement.RowInfo
as
GridViewDataRowInfo;
}
I hope this helps.
SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).
Posted on Feb 2, 2012 (permalink)
Here is the VB.NET version of the code snippet that I have sent you previously:
Public
Function
GetVisibleDataRows()
As
IEnumerable(Of GridViewDataRowInfo)
For
Each
rowElement
GridRowElement
In
Me
.myRadGridView1.TableElement.VisualRows
If
TypeOf
Is
GridViewDataRowInfo
Then
Return
TryCast(rowElement.RowInfo, GridViewDataRowInfo)
End
Next
Posted on Feb 6, 2012 (permalink)
Here is a valid VB.NET version of my code snippet:
List(Of GridViewDataRowInfo)
Dim
result
New
List(Of GridViewDataRowInfo)()
result.Add(TryCast(rowElement.RowInfo, GridViewDataRowInfo))
Posted on Feb 7, 2012 (permalink)
Back to Top
[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below