Click here to Skip to main content
16,005,181 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 4:23
Jammer1-Mar-08 4:23 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 5:27
Jammer1-Mar-08 5:27 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 8:35
Jammer1-Mar-08 8:35 
GeneralRe: Implementing IEnumerable Pin
buchstaben1-Mar-08 8:40
buchstaben1-Mar-08 8:40 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 8:50
Jammer1-Mar-08 8:50 
GeneralRe: Implementing IEnumerable Pin
buchstaben2-Mar-08 2:38
buchstaben2-Mar-08 2:38 
GeneralRe: Implementing IEnumerable Pin
Jammer2-Mar-08 2:55
Jammer2-Mar-08 2:55 
GeneralRe: Implementing IEnumerable Pin
buchstaben2-Mar-08 3:33
buchstaben2-Mar-08 3:33 
in the code you provided, i cant see any use of your class BuildFileList (thats good, since i still believe it is not needed in your case).

i've never worked with WPF, but i think i can give you a hint anyway.

first, in your button click event handler, dont specify the return value as object. you know it is a List<FileInfo>, so you can use it.

to bind this to your ui control, you have to tell the control the bound type. this will be FileEntry, since FileEntry contains the relevant information, not your list.
let's take a gridview as user control. Each row will represent a FileEntry, so you need to specify FileEntry as bound type. if you do that at design time, your gridview will autmatically get columns for each property of FileEntry.
having this done, simply say myGridView.DataSource = singleDirectoryResults (assuming that singleDirectoryResults is of type List<FileInfo>.

Jammer wrote:
All the binding examples I have seen link into a class (such as BuildFileList) which in my case is an empty definition of an object.

you will need to linke to FileEntry class.

hope this is not too weird, since i dont have any dev environment here.
GeneralRe: Implementing IEnumerable Pin
Jammer2-Mar-08 3:46
Jammer2-Mar-08 3:46 
GeneralRe: Implementing IEnumerable Pin
Guffa1-Mar-08 8:52
Guffa1-Mar-08 8:52 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 9:06
Jammer1-Mar-08 9:06 
GeneralRe: Implementing IEnumerable Pin
Guffa1-Mar-08 10:34
Guffa1-Mar-08 10:34 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 10:42
Jammer1-Mar-08 10:42 
GeneralRe: Implementing IEnumerable Pin
Elina Blank1-Mar-08 11:27
sitebuilderElina Blank1-Mar-08 11:27 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 11:31
Jammer1-Mar-08 11:31 
Generalclick once help [modified] Pin
poqeqw1-Mar-08 0:11
poqeqw1-Mar-08 0:11 
GeneralRe: click once help Pin
buchstaben1-Mar-08 8:46
buchstaben1-Mar-08 8:46 
Questionhow to use javascript with master page in asp.net2.0 Pin
puspendra napit1-Mar-08 0:01
puspendra napit1-Mar-08 0:01 
GeneralCross post - please ignore Pin
pmarfleet1-Mar-08 2:34
pmarfleet1-Mar-08 2:34 
Questionresponse.write and response.outputwrite Pin
Sachin Pawar29-Feb-08 23:02
Sachin Pawar29-Feb-08 23:02 
GeneralRe: response.write and response.outputwrite Pin
Christian Graus29-Feb-08 23:08
protectorChristian Graus29-Feb-08 23:08 
GeneralRe: response.write and response.outputwrite Pin
Guffa1-Mar-08 2:24
Guffa1-Mar-08 2:24 
GeneralRe: response.write and response.outputwrite Pin
Christian Graus1-Mar-08 9:26
protectorChristian Graus1-Mar-08 9:26 
Questionrespose.redirect Pin
Sachin Pawar29-Feb-08 23:01
Sachin Pawar29-Feb-08 23:01 
GeneralRe: respose.redirect Pin
Christian Graus29-Feb-08 23:05
protectorChristian Graus29-Feb-08 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.