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
0 answers

Change StringFormat during Runtime

I have the following Scenario where I want to change the StringFormat of a DataGridTextColumn on runtime. On my DataGrid I have also a DataGridTemplate with a Button inside. When I press the Button I want to change the StringFormat from two decimal…
BluePalmTree
  • 299
  • 3
  • 23
0
votes
1 answer

How to Retrieve Values from DataGridTextColumn based on KeyBinding in C#

I have a DataGrid to list the MobileInfo collection. The DataGrid is configured with SelectionUnit="FullRow". If I click the any row then it selects the entire row with additionally it points the cell with border where the mouse hit. The border…
B.Balamanigandan
  • 4,713
  • 11
  • 68
  • 130
0
votes
1 answer

DataTrigger for DataGridColumnHeader based on DataGridTextColumn Header Property

I'm having filter Icon style implemented for the Target Type = DataGridColumnHeader and I attached the Style in DataGrid. Now The Filter Icon should show based on DataGridTextColumn Header Property. Requirement is Header = "Passenger Name" then show…
0
votes
0 answers

how to get value from fallbackvalue?

I have the following DataGridTextColumn: the itemSource of the dataGrid is an ObservableCollection of some class…
Stacker
  • 29
  • 1
  • 8
0
votes
1 answer

How to hide left part instead of right part of a WPF datagrid column when resize it?

I have a DataGridTextColumn that show list of batch download URLs. These URLs have same begin part, only different at the end. They are too long to display, so I resize this column by drag column header. Problem is it hide the right part of these…
NoName
  • 7,940
  • 13
  • 56
  • 108
0
votes
1 answer

How to unit test a custom DataGridTextColumn implementation

I subclassed DataGridTextColumn to implement an editable DataGridColumn for numeric values. Because the logic inside got somewhat complex, I'd like to unit test the implementation with NUnit. However, I can't figure out how to fill a single cell of…
Good Night Nerd Pride
  • 8,245
  • 4
  • 49
  • 65
0
votes
1 answer
0
votes
1 answer

Datagrid is not enabling me to scroll between it's columns if I manually add the data

I'm creating a C# project where many columns of Combo Box are added programmatically in a datagrid. Unfortunately when adding many columns, the datagrid is not able to display them all, and the horizontal scroll bar is disabled and…
Salwa Najm
  • 47
  • 5
0
votes
1 answer

add a ToolTip on a DataGridTextColumn

I have a DataGrid with some DataGridTextColumn like this:
Flo
  • 341
  • 2
  • 4
  • 16
0
votes
1 answer

Get text from DataGridTextColumn with the Textblox style in code behind

i am currently supporting a project and i have received a job to change a validation on a datagridcell to make the text-block's input they have inserted only be 50 characters. i have now went and got the datagrid gotfocus() event, and check for the…
Arrie
  • 1,327
  • 5
  • 18
  • 39
0
votes
1 answer

DataGridTemplateColumn for individual control-column vs DataGridTextColumn

what is the difference, both works: DataGridTemplateColumn versus DataGridTextColumn both works means I can edit+display rich text in the cell.
0
votes
1 answer

DataGridTextColumn getting DataContext property

Hi in a DataGridTextColumn I am binding to a new DataContext which works
user3428422
  • 4,300
  • 12
  • 55
  • 119
0
votes
1 answer

DataGridTextColumn binding to different DataContext

I need to bind a DataGridTextColumn to a different DataContext, I know this is possible as I am doing this correctly in a DaatGridComboBox. the code I have at the moment is
user3428422
  • 4,300
  • 12
  • 55
  • 119
0
votes
1 answer

How to control visibility of DataGridTextColumn

I named two columns like this and I want…
KOR_JAKE
  • 3
  • 4
0
votes
0 answers

WPF MVVM: Access DataGridTextColumn Cells

I have a dynamically DataGrid generated from a DataGridTextColumn collection. Is there any way to access the cells of the column directly from the DataGridTextColumn object? Thanks!
Nadav
  • 133
  • 1
  • 12