Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browse dialog box as part of datagridview? 1

Status
Not open for further replies.

FarleySoftware

Programmer
Jan 14, 2008
18
US
I have a datagridview on a form, containing report names and their "friendly" names.

Example: myreport.rpt in one column, "My Report" in another.

To avoid problems with spelling etc, I'd like the report name column input to be controlled by a "browse for file" dialog.

I'm accustomed to similar things in continuous forms in Access, but this is my first try in the .NET forms world.

Perhaps I should be using a different control than a datagridview?

Thanks in advance.
 
That post name is a little misleading. You may want a button, with the standard elipses (...) so that you can from there open a "Open File" dialog, and then drop the name into the datagrid.

Try to imagine how ugly your datagrid would get if the row suddenly expanded and had a "Open File" dialog.

-Sometimes the answer to your question is the hack that works
 
Sorry, didn't mean to have a confusing/misleading topic name :)

Thanks for your sugggestion. I learned how to add a button column to a datagridview, and combined that with calling a dialog box to browse for a file name & populate a cell. I'll gladly post the code for anyone who might be interested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top