Skip to content

Instantly share code, notes, and snippets.

View Apflkuacha's full-sized avatar

Apflkuacha

  • Austria
View GitHub Profile
@Apflkuacha
Apflkuacha / DataGridExporter.cs
Last active July 15, 2024 14:18
MudDataGrid and RadzenDataGrid Export to CSV and Excel
/*
Possibility to export a MudDataGrid or a RadzenDataGrid to CSV or Excel.
In my project both DataGrid Types are used, but also only one of it could be used by removing the other.
Usage MudDataGrid: var data = Exporter.GetTableData(grid.RenderedColumns, grid.FilteredItems);
Usage RadzenDataGrid: var data = Exporter.GetTableData(grid.ColumnsCollection, grid.View);
Followed by: var fileContentAsByteArray = Exporter.GenerateCSV(data); // or Exporter.GenerateExcel(data);
@Apflkuacha
Apflkuacha / DateTimePicker.xaml
Last active May 28, 2024 07:19 — forked from make4fun/DateTimePicker.xaml
C# DateTimePicker for WPF
<UserControl x:Class="Controls.DateTimePicker"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<controls:InvertBoolConverter x:Key="InvertBoolConverter" />