This project is read-only.

Simple FileBrowse cell - how ?

Oct 22, 2009 at 11:53 AM

I have a real feeling that I am asking a simple question, but having scanned the earlier discussions I cannot find it mentioned before.  How would I create a cell that allows a user to activate the standard WinForms FileBrowse dialog when F2 is pressed (editing).

I have reviewed the sample code - sample3 with the image cell looks close, but I cannot make it accept a non image file or show the file path in the cell.

For my sins I am still working in DotNet 1.1 and hence using SourceGrid v2.

Any help would be greatfully appreciated :-)  Cheers



Oct 23, 2009 at 8:50 AM

Well, i can't help you with SourceGrid v2, since i even do not have sources for it.

But with the trunk version you can create a custom cotnroller and see what key is pressed. If it is F2, then show your custom file browse dialog.

And if you want to show file name in the cell, i suggest you to use just standard cell and show file name as string