Display form according to user response

Asked

Viewed 50 times

1

I need a little help.

I have a Grid, with a column named status de interesse, the type of that column is ComboBox.
However, when the user selects the declined option I want to display a form x.

How do I do?

I think the event is Leave, but about the conditions, how will I verify if the user selected in such cell the option such?

Here’s an example of how the form looks.

  • View form in onclose? yes, it is Leave. Form1.show or Hide I haven’t seen the IMG so I don’t know exactly how it is but can be used either a If elseif or loop or even a case

  • Thank you. My biggest question is how the cell content will be checked to display the form. Do you have any idea how to perform?

  • If you need a check before displaying the form, do an If on onclick of the grid, so each click on the component will be checked and the form displayed

  • Include your code to the question

1 answer

0

Good afternoon @Autoit, the way you take the field is like this:

grdObjetivo.Rows(e.RowIndex).Cells(2).Value.ToString()

Browser other questions tagged

You are not signed in. Login or sign up in order to post.