Skip Navigation LinksHome / Search


Results Per Page

Found 53 results for DataGrid.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

  • 1
  • 2
  • 3
  • ...
  • 6
Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  May 20, 2010 (1 month ago)
    If you are wondering if there is an MVVM-friendly way to get a DataGrid’s SelectedItems into the ViewModel, read this blog post of Laurent Bugnion and find out the answer.

    The issue there is as old as the DataGrid (that’s not very old but still): SelectedItem (singular) is a DependencyProperty and can be databound to a property in the ViewModel. SelectedItems (plural) is not a DependencyProperty.

    Thankfully the answer is very simple: Use EventToCommand to call a Command in the ViewModel, and pass the SelectedItems collection as parameter.

  • We've secretly changed this control's DataContext - let's see if it notices

    0 comments  /  posted by  Silverlight Show  on  May 12, 2010 (1 month ago)
    David Anson has posted this workaround for a Silverlight data binding bug affecting various scenarios including DataGrid and ContextMenu.

    I was contacted by Simon Weaver via Twitter about a problem where the Bindings for MenuItems of a ContextMenu on a DataGrid were acting as though they were associated with a different row than they really were. This seemed pretty weird until Yifung Lin, one of the original DataGrid developers, suggested this might be due to the row recycling behavior DataGrid uses to improve performance. It turns out he was right - but the rabbit hole goes much deeper than that...

  • Drag and Drop grouping in Datagrid

    0 comments  /  posted by  Silverlight Show  on  Apr 26, 2010 (2 months ago)
    In this post at Lee's corner you can find out something more about drag and drop grouping in Datagrid.

    Most 3rd party components have a datagrid where you can a drag column header to the area above the grid to group the data. Here is one way to do the same with a regular datagrid.

  • 0 comments  /  posted by  Silverlight Show  on  Apr 23, 2010 (2 months ago)
    Tags: Excel , DataGrid , WPF , XAML , COM , WPF 4 , Silverlight 4 , Denis Gladkikh
    Denis Gladkikh explains how to export to Excel from both WPF and Silverlight by using COM.

    Data export from DataGrid to Excel is very common task, and it can be solved with different ways, and chosen way depend on kind of app which you are design. If you are developing app for enterprise, and it will be installed on several computes, then you can to advance a claim (system requirements) with which your app will be work for client. Or customer will advance system requirements on which your app should work. In this case you can use COM for export (use infrastructure of Excel or OpenOffice). This approach will give you much more flexibility and give you possibility to use all features of Excel app.

  • 0 comments  /  posted by  Silverlight Show  on  Mar 29, 2010 (2 months ago)
    Tags: DataGrid , TreeGrid , Windows Forms , Eugene Akinshin
    Eugene Akinshin demonstrates how to easily and in no time turn Silverlight DataGrid to TreeGrid.

    In practice, there often appears a necessity to use a hybrid control joining functionality of the TreeView and DataGrid components, i.e. of the tree representing information by each item in several columns with all abilities characteristic to table view: changing columns by a single mouse movement, sorting upon a click on the column title, editing cell content etc. For example, such control is an essential part of the interface of any mailer: Outlook Express, Windows Mail, Mozilla Thunderbird.

  • 0 comments  /  posted by  Silverlight Show  on  Mar 23, 2010 (3 months ago)
    Jeff Handley has posted about using lookup data in the DataGrid and DataForm with RIA Services.

    While off reading random blog posts on the tubes, I stumbled upon a post that describes a 101-level scenario of using lookup data in the DataGrid and DataForm with RIA Services.  The author was struggling to find a solution for the problem and was clearly frustrated.

  • Cascading ItemsSource Bindings in Silverlight

    0 comments  /  posted by  Silverlight Show  on  Mar 16, 2010 (3 months ago)
    Tags: DataGrid , Bindings
    Damon Payne discovered a disturbing issue when dealing with multiple DataGrids on the same screen. In this article he demonstrates the problem and shows a solution.

    When building a complex data visualization application in Silverlight, I discovered a disturbing issue when dealing with multiple DataGrids on the same screen.  If the ItemsSource of a particular DataGrid gets updated as the result of a SelectedItem change in another DataGrid the child grid would not display any items.  Worse, adding code to query the ItemsSource of the child grid shows that does have a valid and correct ItemsSource, so why doesn’t it display?

  • 0 comments  /  posted by  Silverlight Show  on  Feb 05, 2010 (4 months ago)
    Tim Heuer has a quick styling tip for those of you who want to keep selected row focus state.

    The scenario is the classic master-details scenario where perhaps you have a grid of data and when a user selects the row, the details are enabled in a form (or perhaps the child of the element) for editing.

  • Summary Row in Silverlight DataGrid

    1 comments  /  posted by  Silverlight Show  on  Feb 04, 2010 (4 months ago)

    Here Lee demonstrates how to produce a "Summary Row" in DataGrid by customizing the GroupHeader.

    SummaryRow in DataGrid is one of the frequently asked request. Here  is one way we can customize the GroupHeader in Datagrid to create one.

  • 2 comments  /  posted by  Silverlight Show  on  Feb 02, 2010 (4 months ago)
    Michael S. Scherotter has published a behavior for Toggling DataGrid Row Detail Visibility.

    I was chatting with a customer last week about how they were using Silverlight for their B2B portal.  They were having some difficulty with showing and hiding the DataGrid component’s Row Detail template programmatically.  I found a WPF-oriented solution to the problem on StackOverflow and adapted it to an Expression Blend Behavior to make the solution more modular and reusable.

    I posted the behavior with a sample to the Expression Gallery.  If you try it out, please give it an appropriate rating.

  • 1
  • 2
  • 3
  • ...
  • 6
Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)