Click here to Skip to main content
15,886,714 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to read every row of a devexpress gridviw
Posted
Updated 1-Oct-20 12:46pm
v2
Comments
Sergey Alexandrovich Kryukov 21-Jan-12 1:36am    
Then read those rows -- you got my permission. By the way, do you have any questions? If so, don't hesitate to ask. :-)
--SA

try this
VB
For i As Integer = 0 To GridControl1.MainView.RowCount - 1
   GridControl1.MainView.GetRow(i)
Next
 
Share this answer
 
Hi,
try this

Iterating through all rows of an ASPxGridView
http://www.devexpress.com/Support/Center/p/Q93718.aspx[^]
 
Share this answer
 
VB
For i As Integer = 0 To GridView2.DataRowCount - 1
             With GridView1
                 If .GetRowCellValue(i, "GridColumn1") = True Then
                     BillDetailsTableAdapter.Insert(lastValue, .GetRowCellValue(i, "OutwardDcId"))
                 End If
             End With
         Next i
 
Share this answer
 
Tray this.

for (int i = 0; i < gridView1.DataRowCount; i++)
{
if (gridView1.GetRowCellValue(i, "FieldName") == value)
//do something
}
 
Share this answer
 
Comments
Dave Kreskowiak 1-Oct-20 22:04pm    
I seriously doubt the OP is still working on this almost 9 years later.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900