Click here to Skip to main content
15,910,083 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Problem with UserControl Pin
koleraba15-Apr-08 0:11
koleraba15-Apr-08 0:11 
GeneralPhoto Gallery using Silver light Pin
r aa j14-Apr-08 3:43
r aa j14-Apr-08 3:43 
GeneralRe: Photo Gallery using Silver light Pin
Michael Sync14-Apr-08 17:53
Michael Sync14-Apr-08 17:53 
GeneralRe: Photo Gallery using Silver light Pin
r aa j15-Apr-08 18:16
r aa j15-Apr-08 18:16 
QuestionHow can i use DataGridView in WPF Application? Pin
bankey101011-Apr-08 1:24
bankey101011-Apr-08 1:24 
AnswerRe: How can i use DataGridView in WPF Application? Pin
User 27100911-Apr-08 2:02
User 27100911-Apr-08 2:02 
GeneralRe: How can i use DataGridView in WPF Application? Pin
Pete O'Hanlon11-Apr-08 3:13
mvePete O'Hanlon11-Apr-08 3:13 
AnswerRe: How can i use DataGridView in WPF Application? Pin
Pete O'Hanlon11-Apr-08 2:23
mvePete O'Hanlon11-Apr-08 2:23 
If you don't want to download something like the Infragistics or Exceed grids (and really you should look at them - they are very good), you could always host the WinForms DataGridView.

If you're running VS 2008, the steps to do this are:

1. Reference System.Windows.Forms and WindowsFormIntegration in your project.
2. Add a WindowsFormsHost element to your XAML and put the grid inside
:<WindowsFormsHost Height="100" Width="200">
    <wf:DataGridView x:Name="dg" />
</WindowsFormsHost>
3. Add the following declaration to your XAML:
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"



Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: How can i use DataGridView in WPF Application? Pin
User 27100911-Apr-08 3:32
User 27100911-Apr-08 3:32 
GeneralRe: How can i use DataGridView in WPF Application? Pin
Pete O'Hanlon11-Apr-08 4:11
mvePete O'Hanlon11-Apr-08 4:11 
GeneralRe: How can i use DataGridView in WPF Application? Pin
User 27100911-Apr-08 4:30
User 27100911-Apr-08 4:30 
GeneralRe: How can i use DataGridView in WPF Application? Pin
Pete O'Hanlon11-Apr-08 4:51
mvePete O'Hanlon11-Apr-08 4:51 
AnswerRe: How can i use DataGridView in WPF Application? Pin
User 27100911-Apr-08 3:31
User 27100911-Apr-08 3:31 
GeneralDebugging Silverlight Pin
Edmundisme10-Apr-08 11:47
Edmundisme10-Apr-08 11:47 
GeneralRe: Debugging Silverlight Pin
Michael Sync10-Apr-08 20:34
Michael Sync10-Apr-08 20:34 
GeneralRe: Debugging Silverlight Pin
Edmundisme11-Apr-08 7:54
Edmundisme11-Apr-08 7:54 
GeneralUsing a Grid as an ItemsPanel Pin
Ed.Poore9-Apr-08 10:00
Ed.Poore9-Apr-08 10:00 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon11-Apr-08 10:54
mvePete O'Hanlon11-Apr-08 10:54 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore11-Apr-08 11:50
Ed.Poore11-Apr-08 11:50 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon11-Apr-08 12:18
mvePete O'Hanlon11-Apr-08 12:18 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore11-Apr-08 13:32
Ed.Poore11-Apr-08 13:32 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon14-Apr-08 9:07
mvePete O'Hanlon14-Apr-08 9:07 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore14-Apr-08 9:41
Ed.Poore14-Apr-08 9:41 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon14-Apr-08 9:54
mvePete O'Hanlon14-Apr-08 9:54 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore14-Apr-08 10:48
Ed.Poore14-Apr-08 10:48 

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.