A text box on my form does live web searches, returning up to 10 real time as-you-type results. I have this populating a datagridview with a couple of columns.
My question comes in terms of how to display this. I can set the gridview to show/hide ok, likewise set its position. But where to put it while it's hidden? No room on my form, especially where it needs to show above other controls.
I have got round this by adding the grid to another form, showing this where I want it and making it stay in front. But if I minimize my program that form is still there... not ideal.
I suspect a better way is to add the gridview at runtime, but I am unsure to what object controls to add it to. i.e. if I add to main form controls how to I get it to display where I want it & in front of everything else?
I'm sure there is a simple answer here! (PS I'm not using the MS auto complete as I need a couple of columns to show)
My question comes in terms of how to display this. I can set the gridview to show/hide ok, likewise set its position. But where to put it while it's hidden? No room on my form, especially where it needs to show above other controls.
I have got round this by adding the grid to another form, showing this where I want it and making it stay in front. But if I minimize my program that form is still there... not ideal.
I suspect a better way is to add the gridview at runtime, but I am unsure to what object controls to add it to. i.e. if I add to main form controls how to I get it to display where I want it & in front of everything else?
I'm sure there is a simple answer here! (PS I'm not using the MS auto complete as I need a couple of columns to show)