Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search in Grid View by Scanning?
Message
From
14/12/2015 12:34:17
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01628904
Message ID:
01628909
Views:
38
Hey Dmitry,

One method I frequently use is a foreach loop

foreach (GridViewRow gvr in this.gvAnnouncementList.Rows)
{
if (gvr.Cells[new].Text.Equals(mycondition))
{
// you found it
}
}

Other methodologies are available I am sure.

Bill

>Hi,
>
>I have ASP.NET Grid View on ASPX page bound to a dataset/table. I need to find a value of one column by the value of another column. For example, say Grid View has columns Order_no and Customer_Name. I have the customer name "ABC" and need to find the Order_no corresponding to this Customer; basically find this row. I found examples online of scanning through the Grid View. Is this the only approach? Or you can actually Search for the desired row?
>
>TIA
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform