How I can select Value From drop down list in grid view in WebBrowser

goharynet

New member
Joined
Aug 20, 2008
Messages
4
Programming Experience
Beginner
Please Any one Have Any idea
i have winform with WebBrowser to display web site
the web site have grid view
and in column 2 of grid view there are drop down list
11.png
the question is >>> how i can select any item(by text)of drop down list which in grid view

22.png


thank you
 
Then you should look into that first. The Document property of a WebBrowser control is an HtmlDocument object that provides the root access to the DOM (document object model). It has methods GetElementById and GetElementsByTagName that allow you to access specific elements in the document as HtmlElement objects and then do things to them, e.g. call SetAttribute to set the value of an input tag or call InvokeMember to click a button. Without understanding these principles, all you can do is copy and paste someone else's code without understanding what it does.
 
Back
Top