datagrid

  1. dv2020

    Bold Cell based on value in data grid

    Hi All, I have this code below which works well. I'm trying to modify the code so it only bolds the value, and not change the font to "Arial" or the size. if (cellVal > 0 && e.ColumnIndex > 15 && e.ColumnIndex < 27) { row.Cells[e.ColumnIndex].Style.BackColor =...
  2. dv2020

    Resolved How to change currency,format of a column/cell in dynamically changing data grid

    Hi All, I'm trying to work out the best way to change a columns/cell to local currency on a dynamic data grid populated from MySQL The current data grid is populated dynamically from a MySQL query, where the headings and data can change. I would like the code, to check if the Heading of a...
  3. L

    Resolved How to save cell value of a DataGrid directly when editing?

    Hello everyone I have a DataGrid in my WPF application. The cells must be edited. To save the cell value I have to press "Enter" or jump in another cell. Is there a way to save the value at the "CurrentCellChanged" event? Or can you define it directly in XAML? Thanks in advance.
  4. N

    List<string> to Datagrid

    Hi, I have a List<string> called DataOutput, which I obtained from converting a char array. (I know that it works as i have been able to write it to the output window.) I am trying to display it in a DataGrid either by binding in xaml or through the xaml.cs file. 1. how do i go about this? 2...
  5. N

    Question Use Dynamic Resource from the class

    Hello there! I am programming something with views, view models, and models, and i need to display a DataGrid. I want to put the names of the colums in a xaml file, so the user can choose a langage package. I need to declare these colums in my ViewModel file. This work fine when I put the name...
Top Bottom