GridView - set selected index by searching through data keys
- by Cristian Boariu
Hi,
I have a GridView which has DataKey[0] as productId.
If i have for instance productId = 54, is there any way to search through all
GridView item and set as selected the one who has DataKEy[0] = 54?
In drop down list i have :
ddlProducts.Items.FindByValue(lblProduct.Text.ToString())).Selected = true
Is anything similar for GridView?
Thanks in advance.