Giter Site home page Giter Site logo

wpf-datagrid-samples's Introduction

WPF DataGrid Samples

Repository contains various WPF DataGrid samples.

  1. How to improve the performance while selecting rows using shift key in WPF DataGrid (SfDataGrid)? - Demo
  2. How to wire the RowValidating event after pasted content to WPF DataGrid (SfDataGrid)? - Demo
  3. How to load WPF DataGrid (SfDataGrid) with JSON data? - Demo
  4. How to load different cell types for each row based on first column value in WPF DataGrid (SfDataGrid)? - Demo
  5. How to add custom control below the header row in WPF DataGrid (SfDataGrid)? - Demo
  6. How to show the tooltip for specified cell in WPF DataGrid (SfDataGrid)? - Demo
  7. How to set the background for selected DetailsViewGrid in WPF DataGrid (SfDataGrid)? - Demo
  8. How to get the record using mouse double click in the row in WPF DataGrid (SfDataGrid)? - Demo
  9. How to load the symbols in FilterRow in WPF DataGrid (SfDataGrid)? - Demo
  10. How to add the textbox and binding property in WPF DataGrid (SfDataGrid)? - Demo
  11. How to achieve the EditorSelectionBehaviour as SelectAll in GridTemplateColumn in WPF DataGrid (SfDataGrid)? - Demo
  12. How to filter the records in WPF DataGrid (SfDataGrid)? - Demo
  13. How to scroll and select the record programmatically in WPF DataGrid (SfDataGrid)? - Demo
  14. How to perform the incremental search in WPF DataGrid (SfDataGrid)? - Demo
  15. How to make drag and drop between the WPF DataGrid (SfDataGrid) with other controls? - Demo
  16. How to customize the filtering and sorting icons in WPF DataGrid (SfDataGrid)? - Demo
  17. How to load a button in caption summary row and prevent expand and collapse of groups in WPF DataGrid (SfDataGrid)? - Demo
  18. How to skip add the hidden columns in WPF DataGrid (SfDataGrid)? - Demo
  19. How to display the group header based on the column name in WPF DataGrid (SfDataGrid)? - Demo
  20. How to bind a column collection from view model in WPF DataGrid (SfDataGrid)? - Demo
  21. How to set row height based on content while printing WPF DataGrid (SfDataGrid)? - Demo
  22. How to improve performance when loading grid with records and columns in WPF DataGrid (SfDataGrid)? - Demo
  23. How to scroll multiple items for one mouse wheel in WPF DataGrid (SfDataGrid)? - Demo
  24. How to import the data from excel to WPF DataGrid (SfDataGrid)? - Demo
  25. How to bind the view model ItemsSource to GridComboBoxColumn in WPF DataGrid (SfDataGrid)? - Demo
  26. How to change the filter predicate showing in CheckBoxFilter UI in WPF DataGrid (SfDataGrid)? - Demo
  27. How to show the filter status message in WPF DataGrid (SfDataGrid)? - Demo
  28. How to enable the button in GridTemplateColumn when mouse hovering in WPF DataGrid (SfDataGrid)? - Demo
  29. How to sort multiple column in WPF DataGrid (SfDataGrid)? - Demo
  30. How to display positive and negative infinity values as strings in WPF DataGrid (SfDataGrid)? - Demo
  31. How to print WPF DataGrid (SfDataGrid) with DetailsView? - Demo
  32. How to scroll WPF DataGrid (SfDataGrid) when we load with in the ScrollViewer? - Demo
  33. How to disable the hyperlink based on cell value in grid hyperlink column in WPF DataGrid (SfDataGrid)? - Demo
  34. How to customize print preview window in WPF DataGrid (SfDataGrid)? - Demo
  35. How to add a new row continuously without any selection to next row in WPF DataGrid (SfDataGrid)? - Demo
  36. How to paste the copied row in AddNewRow in WPF DataGrid (SfDataGrid)? - Demo
  37. How to print multiple WPF DataGrid (SfDataGrid) in a single document? - Demo
  38. How to localize the filter values in GridCheckBoxColumn in WPF DataGrid (SfDataGrid)? - Demo
  39. How to load different images in GridCell based on cell value in WPF DataGrid (SfDataGrid)? - Demo
  40. How to bind WPF DataGrid (SfDataGrid) with CollectionViewSource? - Demo
  41. How to edit grid hyperlink column in WPF DataGrid (SfDataGrid)? - Demo
  42. How to load web image in GridImageColumn of WPF DataGrid (SfDataGrid)? - Demo
  43. How to load number filters in AdvanceFilters using dynamic collection in WPF DataGrid (SfDataGrid)? - Demo
  44. How to change the checkbox column values based on row selection in WPF DataGrid (SfDataGrid)? - Demo
  45. How to use the editing events in GridCheckBoxColumn of WPF DataGrid (SfDataGrid)? - Demo
  46. How to bind the selecteditem and currentitem in DetailsViewDataGrid of WPF DataGrid (SfDataGrid)? - Demo
  47. How to skip editing for read-only colums in AddNewRow of WPF DataGrid (SfDataGrid)? - Demo
  48. How to load the collection in GridComboBoxColumn of WPF DataGrid (SfDataGrid)? - Demo
  49. How to paste the empty string while using cell selection in WPF DataGrid (SfDataGrid)? - Demo
  50. How to select the rows based on cell value in WPF DataGrid (SfDataGrid)? - Demo
  51. How to use the conditional formatting in table summary cell of WPF DataGrid (SfDataGrid)? - Demo
  52. How to set the show duration and show delay duration for tooltip in WPF DataGrid (SfDataGrid)? - Demo
  53. How to skip the certain column from auto row height support in WPF DataGrid (SfDataGrid)? - Demo
  54. How to display the number format info in GridSummaryColumn of WPF DataGrid (SfDataGrid)? - Demo
  55. How to change row background based on record in WPF DataGrid (SfDataGrid)? - Demo
  56. How to change the cell value of selected cells in WPF DataGrid (SfDataGrid)? - Demo
  57. How to clear the selection while grouping or ungrouping in WPF DataGrid (SfDataGrid)? - Demo
  58. How to cancel the AddNewRow operation using Esc key from edit mode in WPF DataGrid (SfDataGrid)? - Demo
  59. How to change the row background based on property in record of WPF DataGrid (SfDataGrid)? - Demo
  60. How to bind dictionary to column in WPF DataGrid (SfDataGrid)? - Demo
  61. How to show the number keyboard when editing GridNumericColumn in WPF DataGrid (SfDataGrid)? - Demo
  62. How to validate the AddNewRow value based on existing records in WPF DataGrid (SfDataGrid)? - Demo

wpf-datagrid-samples's People

Contributors

9629976110 avatar backiaraj avatar farjanaparveen avatar sarubala20 avatar syncfusionbuild avatar syncsiva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wpf-datagrid-samples's Issues

How-to-show-the-filter-status-message-in-wpf-datagrid breaks if used in more than one SfDataGrid

it throws a System.Windows.Markup.XamlParseException - System.ArgumentException: PropertyMetadata is already registered for type 'FilterStatusBar' at the ctor

at https://github.com/SyncfusionExamples/WPF-DataGrid-Samples/blob/main/How-to-show-the-filter-status-message-in-wpf-datagrid/WPF/CS/StatusBar/FilterStatusBar.cs#L91

I replaced

/// <summary>
/// Initializes the <see cref="FilterStatusBar"/> class.
/// </summary>
public FilterStatusBar()
{
    DefaultStyleKeyProperty.OverrideMetadata(typeof(FilterStatusBar), new FrameworkPropertyMetadata(typeof(FilterStatusBar)));          
}

with

private static bool alreadyRegistered = false;

/// <summary>
/// Initializes the <see cref="FilterStatusBar"/> class.
/// </summary>
public FilterStatusBar()
{
    if (!alreadyRegistered)      
    {
        DefaultStyleKeyProperty.OverrideMetadata(typeof(FilterStatusBar), new FrameworkPropertyMetadata(typeof(FilterStatusBar)));
        alreadyRegistered = true;
    }
}

WPF sfDataGrid How-to-show-the-filter-status-message-in-wpf-datagrid filters missing

at https://github.com/SyncfusionExamples/WPF-DataGrid-Samples/blob/main/How-to-show-the-filter-status-message-in-wpf-datagrid/WPF/CS/StatusBar/FilterStatusBar.cs#L207 I added...

case FilterType.NotContains:
    return "[" + colname + "]" + " Does Not Contain '" + filtervalue + "'";
case FilterType.NotEndsWith:
    return "[" + colname + "]" + " Does Not End With '" + filtervalue + "'";
case FilterType.NotStartsWith:
    return "[" + colname + "]" + " Does Not Start With '" + filtervalue + "'";
case FilterType.Undefined:
    return "[" + colname + "]" + @" ¯\_(ツ)_/¯ " + filtervalue;

Thanks for making this sample, very useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.