0
Hello.
How can I perform a check of the first number of a grid Row ?
Example:
If Conversions.ToString(Me.DataGridView1.CurrentRow.Cells(0).Value)[0(primeiro número da row)] == (for igual a:) 5 Then
WebBrowser1.Document.GetElementById("ibMaster").InvokeMember("click")
If Conversions.ToString(Me.DataGridView1.CurrentRow.Cells(0).Value)[0(primeiro número da row)] == (for igual a:) 4 Then
WebBrowser1.Document.GetElementById("ibFitness").InvokeMember("click")
I don’t understand your question... what you consider the "first number of a grid Row"? Can further develop your question?
– João Martins
It would be the first number in the first column of the datagrid, following print: http://prntscr.com/khdr5g
– Bro Faz Sol
Then, like, the program would check:
Se (o primeiro número da coluna for) == 1 Then Variável a (string) = "ibMestre" End
– Bro Faz Sol