Questions tagged [datagridcolumn]

A class that presents a data column in a datagrid.

Learn more about datagridcolumn at MSDN.

128 questions
0
votes
2 answers

DataGridCheckBoxColumn with text before the check box

I've a DataGrid and it has a DataGridCheckBox column. And I need to present the check box like this in all the rows of DataGrid: And following is the XAML and corresponding code I've:
Abbas
  • 3,872
  • 6
  • 36
  • 63
0
votes
1 answer

Problems with ActualWidth not being recalculated

How come is the ActualWidth of a DataGridColumn is not affected by changing the value of its Width property but it is when I change the value of its MinWidth? In other words how does ActualWidth get computed or changed ?
smichaud
  • 326
  • 2
  • 12
0
votes
1 answer

Flex Datagrid Column not displaying the value

We have a Datagrid:
Harry
  • 546
  • 6
  • 22
  • 50
0
votes
1 answer

DataGridColumn Readonly via converter

I have a Datagrid with three columns. I want the second column readonly if the value of first column is not null I tried with a converter but there's something wrong. Any ideas why?
Galma88
  • 2,398
  • 6
  • 29
  • 50
0
votes
1 answer

Binding visibility to bool value in WPF dataGrid

I am aware that as DataGrid columns aren't part of the Visual Tree, you can't bind the visibility property of the columns directly to a boolean property in your VM. You have to do it another way. Below is the way I have done it: public class…
user3161050
  • 111
  • 1
  • 14
0
votes
1 answer

C# WPF how to resize datagrid columns proportionally in code behind

I have a datagrid whose column properties have to be changed programmatically in code behind for this I use the event AutoGeneratingColumn="Datagrid_AutoGeneratingColumn" on which I do: private void Datagrid_AutoGeneratingColumn(object sender,…
Patrick
  • 3,073
  • 2
  • 22
  • 60
0
votes
2 answers

Cannot convert from 'string' to 'System.Windows.Controls.DataGridColumn'

I am using Visual Studion 2015, .NET Framework 4.5.2, working with WPF, and want to assign the content of an imported CSV-file in a simple way to a DataGrid object, which is described here: (...)
Joey
  • 511
  • 6
  • 20
0
votes
1 answer

flex4: how can i add a GlowFilter to a mx:DataGridColumn?

I'm building an application using flex 4. Using to display a table. I would like to add a to a DataGridColumn. how can I do so? thanks!
ufk
  • 30,912
  • 70
  • 235
  • 386
0
votes
1 answer

How to get the edited cell's column name?

I want to get a datagrid edited cell's column name. private void CellEditEnding(object sender, DataGridCellEditEndingEventArgs e) { var editedTextbox = e.EditingElement as TextBox; if (editedTextbox != null) …
Dephott
  • 45
  • 4
0
votes
2 answers

ExtJS 5.0 cellclick event returns incorrect column

I'm trying to use cellclick on a grid where based on a certain column clicked, I want to run some operations. But every time, it returns a wrong column i.e. if I click on column 0 (first col), it returns the next column. cellclick: function(view,…
KavitaC
  • 635
  • 7
  • 29
0
votes
2 answers

DataGrid Image ItemRenderer --> How to change image source of other rows, not only the selected one

I have an Image in my DataGrid. Its purpose is to play and stop an audio, so I need to change the image source from the "Play" image to the "Stop" image every time I click on it. I've already accomplished that with the next code:
0
votes
1 answer

How to add an image to a DataGridTemplateColumn header

I have a Datagrid with some DataGridTemplateColumns. One of them is for the costs (see code below). The column heading is Costs. Now I want a image at the right side of the heading Costs. How can I do that?
Stampy
  • 456
  • 7
  • 27
0
votes
1 answer

Binding DataTemplate to DataGridColumn CellTemplate

I am trying to setup a DatePicker DataGrid column in the code. This column is used with different DataGrids, each displaying different types of objects. From this post I came up with the following code, which works ok: public DataGridColumn…
Ben
  • 3,241
  • 4
  • 35
  • 49
0
votes
1 answer

Flex DataGridColumn with array of objects as data provider

I have a datagrid that uses an array of objects as the data provider. The objects are essentially key/value pairs: { foo:"something"} { bar:"hello"} { caca:"lorem"} The datagrid has 2 columns. The first column is the key and the second column is…
rforte
  • 1,167
  • 1
  • 11
  • 21
0
votes
1 answer

Setting the DataGridHyperlinkColumn Binding as a URI Attribute

Not sure how to go about this. I am trying to set-up a DataGridHyperlinkColumn in the code-behind so that all the links point to the same URI but each has a different attribute value. Here is what I have so far: DataGridHyperlinkColumn dgCol = new…
Ben
  • 3,241
  • 4
  • 35
  • 49
1 2 3
8 9