Thank you for the explanation. I ended up using pretty much the same approach as you do.
>Hey Dmitry,
>
>Sorry, pressed for time so coded it pretty fast. Yes, the "new" is either Cell Index ( 0-based ). Check the value in the Cell to determine if there is a match. I use this methodology a lot since it is straightforward. I figure there are also other methodologies you can use also, maybe some of them would be more efficient or elegant but I have not checked into it sine this methodology has worked well for me.
>
>Bill
>
>>Hi Bill,
>>
>>What value is the 'new' in your code? Is it an index of the column?
>>
>>Thank you
>>
>>>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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham