Good to hear. Glad it worked out for you and happy to help.
Bill
>As I mentioned, that I ended up using the approach of scanning the GridView. But I will look for what it is involved with using RowCommand Event.
>Thank you.
>
>>However, from the other posts it seems you do not want to scan the GridView but do something like handling the GridView RowCommand Event and retrieve the relevant data directly from the GridView Row selected.
>>
>>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
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.