private void gridview1_Click(object sender, EventArgs e) { if ((gridview1.Columns.View).FocusedValue == "edit") { if (webBrowser1.Url.PathAndQuery == ("web page url")) { if (webBrowser1.Document != null) { HtmlElementCollection theElementCollectionChildNext = webBrowser1.Document.GetElementsByTagName("input"); foreach (HtmlElement elChild in theElementCollectionChildNext) { if (elChild.InnerText == "edit") { elChild.InvokeMember("click", null); break; } } } simpleButton1.Text = "edit"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)