Questions tagged [datagridtextcolumn]

Represents a DataGrid column that hosts textual content in its cells.

Represents a DataGrid column that hosts textual content in its cells. This column hosts TextBlock elements for cells that are not in editing mode and a TextBox control for a cell that is in editing mode.

By default, the DataGrid control generates columns automatically when you set the ItemsSource property. The generated columns are of type DataGridCheckBoxColumn for bound Boolean (and nullable Boolean) properties, and of type DataGridTextColumn for all other properties. If a property does not have a String or numeric value type, the generated text box columns are read-only and display the data object's ToString value.

112 questions
0
votes
1 answer

WPF DataGridTextColumn MaxLength

I have a DataGrid with a DataGridTextColumn, I've set TextBlock.TextWrapping to NoWrap. If I try to display a really really long line, over 10000 characters long the display just cuts of like it's more than TextBlock.MaxWidth. The problem is that it…
Kvasi
  • 1,228
  • 1
  • 10
  • 14
0
votes
1 answer

IErrorDataInfo apply tooltip style to all DataGridTextColumns

I'm working in a WPF C# project, I had a lot of problems showing tooltips for validation purposes and I came across this solution in another post here on StackOverflow.
xDGameStudios
  • 321
  • 1
  • 13
0
votes
1 answer

Converter not firing

I have below DataGridTextColumn in my datagrid: Filter is a property in view model: private EnumStatus filter; …
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

WPF binding selected item in datagrid to a second datagrid and show value depending of it

I have two WPF datagrids. When a row is selected from first datagrid, dg1, a column called 'Notes' in second datagrid, dg2, should be shown as empty strings only and only if the content of the column 'Note Type' for the selected row in dg1 is equal…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

How to set value in WPF datagridtextcolumn cell when the datagridcombobox cell value is changed?

I am developing an application using WPF 4.0 Datagrid. My Datagrid grid has one datagridcomboboxcolumn and one datagridtextcolumn. How to change the datagrid text cell value using the datagridcomboboxcolumn's SelectedIndex_Changed event?
0
votes
1 answer

WPF DataGridTextColumn contains backspace char

How can "BS" (alias Backspace, alias \b) be a value in a string property that is databound to a DataGridTextColumn: XAML
0
votes
1 answer

How to get the WPF column binding field from DataGridColumnHeader style

I am doing custom sorting for WPF datagrid (as I use pagination so I can not use default sorting), how can I get name of the field that column binding to? Below is my current code inside DataGrid.Resources
0
votes
1 answer

How to access DataGridTextColumn String format from code behind c#?

I'm using WPF to display Products on my DataGrid, for database I am using MySql database, decimals in mysql are stored as 100.30, 100.10, 90.40, as you can see mysql is using dot(".") as separator between decimals, and to show it on my screen as…
Roxy'Pro
  • 4,216
  • 9
  • 40
  • 102
0
votes
1 answer

WPF Reach to DataGridTextColumn's Binding info as string

I'm new at WPF. I have stuck somewhere in XAML. This XAML code is working: