Answer the question
In order to leave comments, you need to log in
WPF DataGrid how to output UnixTime?
Good day to all!
Please tell me if there is a better solution for such a task: It is necessary to display the temperature and date values from the mysql database when the measurement was made. The date is stored in UnixTime.
If you generate columns automatically, then the column has a name
If you write by handFROM_UNIXTIME(date_izm, '%d--%H:%i:%s')
<DataGridTextColumn Header="Дата" Width="200" Binding="{Binding Path='FROM_UNIXTIME(date_izm, '%d--%H:%i:%s')'}"></DataGridTextColumn>
then the studio swears. And in both cases, sorting does not work :( Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question