The code you provide (date.Binding = new Avalonia.Data.Binding("date")
) is actually valid and compiles in Avalonia if you are not using NativeAOT.
Support for DataGrid with NativeAOT has not happened yet, so you can't use the two together in the first place.