For begin I want to describe my problem for you.
I want to show huge number of records in something like combobox, but because combobox isn't a good solution for displaying such huge number of data hence I simulate combobox behaviour with DataGridView.
Now my problem is when user click out of DataGridView , DataGridView should be closed(like combobox when it isn't collapsed or dropped). but there is a lot of other control on the form and I cant handle click event of all of them to detect that out of DataGridView has been clicked.
to sum up I look for a simple solution for invisible DataGridView if user click outta that .
at the end I know a vague awareness of MouseCapture property of controls but I cant work with that and I dont know how can I use that for handle my desire.I am appreciate you if you can help me for using MouseCapture for solving this problem or giving another solution.
thanks for you