Questions tagged [datagridcolumn]

A class that presents a data column in a datagrid.

Learn more about datagridcolumn at MSDN.

128 questions
0
votes
1 answer

Selecting and Setting Style to DataGridColumn after passing the DataProvider

I have a Datagrid thats being populated by different Arrays... (headers/columns change for the same DataGrid)... I would like to Select a Column of the Datagrid after it was generated by the Dataprovider and Bold it, and place it as the 'last…
Yozef
  • 829
  • 11
  • 27
0
votes
0 answers

How can I call the converter only during initialization?

I have a project, which contain converter. When I click in DGKraj (one of the many ComboBox) and during initialization converter is automatically called. How can I call the converter only during initialization? public class CountrySingleConverter :…
0
votes
1 answer

How can I change the value sent to the converter?

I have a project, which contain converter. After completion of the ContinentSelectionChanged method call, is called automatically the converter. How can I change the value that converter gets? XAML
0
votes
1 answer

WPF Datagrid Column - How to attach a tag object programatically?

Folks, I need to add a "tag" property to a programatically created WPF DataGridColumn. I saw a nice example at Tag Property in WPF DataGrid Column. However, this example is using the tag property in a statically defined xaml file. In my case, I…
Peter
  • 11,260
  • 14
  • 78
  • 155
0
votes
1 answer

How can I bind collection data as a columns value in a datagrid?

I want to bind a collection of data as different columns in a DataGrid. The normal way we bind data is bind property. But now my scenario is the properties is a dynamic collection which might be different from different object instances. For each…
0
votes
2 answers

kendo grid get the max length of the column values data

I have a kendo grid like this.. @(Html.Kendo().Grid() .Name("baseball") .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("Index", "baseball")) …
user1032957
  • 453
  • 1
  • 6
  • 16
0
votes
1 answer

Subclass DataGridBoundColumn in Silverlight

I'm trying to subclass a DataGridBoundColumn to create one that displays a ComboBox. The API mirrors the ComboBox's:
Chui Tey
  • 5,436
  • 2
  • 35
  • 44
0
votes
1 answer

Adding Removing Columns to Datagrid in Flex with States

I was developing an app that in the first state you choose a date range using dataFields then you press a button to go to another state and generate a datagrid showing an employee list and another scrollable datagrid with its columns generated…
Yury Euceda
  • 570
  • 4
  • 15
0
votes
1 answer

Flex - Adding a New Line in a DataGridColumn

To start with, I am very new to Flex. I have a ComboBox that is filled in with choices from the database. Underneath that is a Flex Datagrid with DataGridColumns (mx:located below). I would like to figure out a way that when a selection is made…
0
votes
1 answer

Flex: How is data passed from DataGridColumn.itemToLabel to DataGrid.itemRenderer.set(data)?

I have a DataGrid whose dataProvider is an Array of int Arrays (each with different lengths). Since each row has variable size (and I want to display all the data), I decided to extend DataGridColumn and overwrite the itemToLabel function to be able…
deux11
  • 17
  • 6
0
votes
1 answer

flex: display number of children in datagrid column

I have a XML-file looking like this: 0 1 0 1
Lammar
  • 1
0
votes
1 answer

Displaying transparent image in a WPF DataGrid

I have been tasked with taking an existing list of transparent .png images (currently housed within an ImageList) and displaying them in a WPF DataGrid based on the ImageID column. I have set up the DataGridColumn as follows: _dataTemplateColumn…
0
votes
1 answer

Bindable dynamic DataGrid Columns

Here is my ViewModel class: public class ColumnViewModel : ViewModelBase { private string bindingPropName; public string BindingPropName { get { return bindingPropName; } set { if (bindingPropName !=…
0
votes
1 answer

Silverlight 3.0: How to bind DataGridColumn to an ICommand wherein the DataGrid is bound to an ItemsSource

I have a SL3 DataGrid bound to a collection. One column of the datagrid is a HyperlinkButton column and I want to bind the click event of the column to an ICommand present in the VM. pseudo code: DataGrid ItemsSource="{Binding someCollection}" …
0
votes
2 answers

Silverlight DataGridColumn AttachedProperties

I am attempting to create an AttachedProperty for a DataGridColumn within Silverlight 3.0 and I am having some issues. Here is the AttachedProperty: public class DataGridColumnHelper { public static readonly DependencyProperty HeaderProperty = …
1 2 3
8
9