GridViewColumn is a control in WPF which separates the Grid and ListView controls with columns.
Questions tagged [gridviewcolumn]
104 questions
0
votes
0 answers
Code-behind free, using Data-trigger for updating/resizing GridViewColumn
Im trying, using Code-behind-FREE XAML-code, to resize GridViewColumn / column1 each time Button1 is pressed according to the newly brought data (Button1 should bring new data and resize column1 of the ListView at the same time, the code that…

user188
- 59
- 3
- 9
0
votes
1 answer
How to add GridViewColumnHeader to GridViewColumn dynamically?
Hi I am creating GridView column dynamically like this:
GridViewColumn idColumn = new GridViewColumn();
grdMain.Columns.Add(idColumn).
Now I want to attach ColumHeader to create the column dynamically. I did:
GridViewColumnHeader idColumnHeader =…

jolly
- 137
- 1
- 4
- 15
0
votes
1 answer
Programatically binding a header in a Gridview
I have a datatable being built in code which can dynamically have any given number of columns. I have to group the rows within the Gridview by adding a new TableRow based on the first column. This requirement means I can't use the…

lloydphillips
- 2,775
- 2
- 33
- 58
0
votes
2 answers
GridView without data won't show columns
i can't seem to get the columns to show up on the page. I want to show the gridview with the columns, but without any data. How can i do that?
**Presenter.cs**
public DataTable GetAllSelectedColumns(int onderzoekId)
{
DataTable dt =…

user2132291
- 9
- 5
0
votes
1 answer
Gridview and Column sets
I have a Gridview that is data bound to an array of objects, with a ton of properties attached to them. The grid would need to be too wide to show all of them at once (and also overwhelming for the user), so I'd like to have some link buttons that…

kazzamalla
- 193
- 1
- 13
0
votes
1 answer
How to set Gridview Column width as per database field width?
I am new to windows desktop application development.
I have a grid in which I am displaying list of customers whose bills are printed.
The form looks like this.
The grid in this form displays the list of all customers and it is bounded in the…

Mohemmad K
- 809
- 7
- 33
- 74
0
votes
2 answers
Why this Binding doesn't work properly even it gets value from source?
I have this own class :
public class PeriodContainerPanel:StackPanel
{
public PeriodContainerPanel()
: base()
{
addCollectionsToStackPanel();
}
private void addCollectionsToStackPanel()
{
…

Javidan
- 566
- 1
- 9
- 25
0
votes
2 answers
GridviewColumn width adjusts for first entry only; when set to auto - WPF
I am trying to achieve following things
1. Set Minimum width for gridview column to some value.
2. When entries are added to this column, column width should adjust accordingly.
I have written following code for it

quitprog
- 491
- 1
- 9
- 24
-1
votes
1 answer
WPF Converter: Unable to cast object of type 'System.Int32' to type 'System.Windows.Controls.ListViewItem'
In a GridViewColumn I have below converter:

Willy
- 9,848
- 22
- 141
- 284
-1
votes
1 answer
ListView AlternationIndex: how to make foreground transparent for first column and row OR start numbering from second row and from 1
In a WPF ListView I have the first column as below:

Willy
- 9,848
- 22
- 141
- 284
-1
votes
1 answer
C# WPF Bind a specific object of a list to a GridViewColumn
i'm working on this since a while but didn't solved my problem.
The Case:
I have list A which contains objects of Info.
Info has the properties id, name and list B which contains objects of Details.
Details has the properties id, Name and a bool.
Is…

Andy Greb
- 29
- 4
-2
votes
1 answer
HOWTO Remove the extra empty space(column) on the right handside of a WPF ListView
I have an WPF ListView with three columns. I see that in my ListView appears an extra empty space(column) on the right handside and I do not know why. How can I remove this extra space using XAML?

Willy
- 9,848
- 22
- 141
- 284
-2
votes
1 answer
How to add "x:name" attribute to a GridviewColumn dynamically?
I have these codes:
For i = 0 To clmncount
Dim GridView2 As New GridViewColumn
GridView2.SetValue(NameProperty, "Grclnm" & i)
datatemple1 = New DataTemplate
Dim a as New FrameworkElementFactory(GetType(TextBox))
…

ismailakarim
- 1
- 5
-2
votes
2 answers
C# WPF read a .txt file line by line and store it to listview with GridViewColumn
I have a .txt file with text in the following format:
14:04:43 29.07.2014 Process information for JONAS-PC:
Name Pid CPU Thd Hnd Priv CPU Time Elapsed Time
Idle 0 98 8 0 0 1008:29:34.706 …

mohrjon1
- 19
- 1
- 1
- 4