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

How to listen to a custom event dispatched by a renderer in Flex?

I'm having the following problem: I've implemented a custom headRenderer for my DataGridColumn. The idea is to have a dropdown menu when clicked on the column header. The problem is I don't know how to add a listener or pass a variable to the…
ksiomelo
  • 1,878
  • 1
  • 33
  • 38
0
votes
1 answer

How to Show primary key data?

I have two tables: Transactions and Accounts. Transaction has a foreign key IDAccount from Accounts Table. I assign datasource property of Datasource property of Datagridview to Transactions Table. I want to Accounts.description insead of IDAccount…
Tabriz Atayi
  • 5,880
  • 7
  • 28
  • 33
0
votes
0 answers

How to resize the width of the border of a ValidationErrorTemplate?

Whenever a user enters an invalid value into a DataGridCell, I highlight the complete row and the specific cell especially. I found out that when I decrease the width of a column after validation, the red border of the invalid cell kepps its…
du-it
  • 2,561
  • 8
  • 42
  • 80
0
votes
1 answer

Disable click event on mvc kendo grid containing checkbox

I have column holding the checkbox on a MVC kendo grid. When I click on the column but not on the checkbox, the checkbox position is slipping (moving towards right) and the click event is not delegating to checkbox. I tried Change event and…
SharK
  • 2,155
  • 1
  • 20
  • 28
0
votes
1 answer

Dynamic WPF Datagrid. Calculate function column logic

I am trying to make an invoice program, and i am trying to show the objects in a dynamic way inside a DataGrid. There would be only one column that the object has "Name", and extra columns like tax%, discount % and amount.(As an IntegerUpDown from…
Feronimus
  • 123
  • 10
0
votes
1 answer

WPF Grid Horizontal Scrollbar instead of column resizing

I have a Grid with many columns. On small pc screens, the columns are automatically resized. Instead of this default behavior, I want an horizontal scrollbar (and the columns not to be resized). If I set the MinWidth property on each columns, I…
Lou
  • 277
  • 1
  • 5
  • 15
0
votes
0 answers

How can I use attached properties to adjust the displayed values of DataGridRows?

I want to use an attached property with a DataGridColumn for the sake of determining what data each row should display based on that columns value. In compliance with the Minimal, Complete and Verifiable Example requirements: App.Xaml.CS: using…
Will
  • 3,413
  • 7
  • 50
  • 107
0
votes
1 answer

Create a WPF DataGridHyperlinkColumn and pass as a parameter its value to a custom WPF window

I have a WPF MVVM application which in its main form has a datagridview. This datagrid has some columns. One of them is of type DataGridHyperlinkColumn. In the example below I will simplify the real case to focus on the interesting part that is…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
0 answers

How to remove menu option from Kendo Grid when using Kendo().Grid() syntax?

I'm building a grid using @(Html.Kendo().Grid(Model.MyModel)) syntax: @(Html.Kendo().Grid(Model.MyModel) .Name("GridName") .Columns(columns => { column.Bound(c =>…
gene
  • 2,098
  • 7
  • 40
  • 98
0
votes
1 answer

Accessing DataGridColumn property from DataTrigger in CellTemplate

I created own custom attached property on DataGridColumn - utilities:ADPs.IsCellSelected to indicate whether any cell is selected in the column. I did similar for rows and it works fine. Now I want to use this property to change the whole column…
0
votes
2 answers

How can I save rearranged column positions when reading out a DataGrid?

I have a DataGrid implemented in a WPF-window inside a VSTO-AddIn, which is supposed to preview data to the user before it is pasted to an existing Excel-sheet. The CanUserSortColumns-Property is set to true, so the user is able to rearrange the…
0
votes
1 answer

Retrieve List of WPF DataGrid Columns By Background Property Setter

I'm trying to retrieve a list of columns in a DataGrid that have a particular background color/brush, using the following: Dim OutputCols As New List(Of DataGridColumn) OutputCols = datagrid_Output.Columns.Where(Function(a) Not (a.CellStyle Is…
swabygw
  • 813
  • 1
  • 10
  • 22
0
votes
1 answer

Getting dataFields of DataGridColumn into ArrayCollection

I have a DataGrid with 3 DataGridColumns. All 3 of them have separate dataFields. I need to get the datafields into an ArrayCollection and pass it to a funciton. I dont want to hard code the ArrayCollection. Is there any way to achieve this?
Vishal
  • 2,711
  • 7
  • 33
  • 42
0
votes
1 answer

WPF complex DataGridColumn - First Name + Last Name Sort, single cell display

Say I have the following class: public class Name { public string First {get;set;} public string Last {get;set;} public string FullName { get { return String.Format("{0} {1}", this.First, this.Last); …
turkinator
  • 905
  • 9
  • 25
0
votes
1 answer

silverlight column header disappers on applying header style template

I have a Silverlight DataGrid with two columns. The headers of these two columns header have to be shown with a text box and column header title or name so that the text box can be used for filtering later. So, I have used the following code to…
subash
  • 4,050
  • 14
  • 51
  • 78
1 2 3
8 9