Skip to content
Discussion options

You must be logged in to vote

I found a solution here:
#13238

Modify my backend code as follows:

using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Interactivity;
using Avalonia.Media.TextFormatting;
using Avalonia.Threading;
using System.Data;
using System.Threading.Tasks;

namespace AvaloniaApplication1
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
        protected override void OnLoaded(RoutedEventArgs e)
        {
            base.OnLoaded(e);
            DataTable _dataTable = new DataTable();
            _dataTable.Columns.Add($"G", typeof(string));

            var _row = _dataTable.NewRow();
            _row[$"…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kyuranger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants