Questions tagged [gridviewcolumn]

GridViewColumn is a control in WPF which separates the Grid and ListView controls with columns.

104 questions
0
votes
2 answers

Displaying items from a list onto the column in gridview

Im trying to display the name and path of a file in a listbox. For example, the name should come under Header FileName and path under FilePath. I do not want to bind to any xmls, as i have a code to display the file name and size.Im new to this and…
puzzled
  • 57
  • 2
  • 8
0
votes
0 answers

WPF ListView: binding a nested property to GridViewColumn.DisplayMemberBinding throws exception "BindingExpression path error"

Within a ListView I have a GridViewColumn which I am trying to bind a nested property to its DisplayMemberBinding attribute:
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

Images contained in the buttons disappear after adding a new item to the WPF listview

Within a GridViewColumn in a listView I have three buttons (delete, move up and move down item) in the same column. Delete button will always be shown. However Move Up and Move down buttons are collapsed or not depending if they have sense (for…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

Get CellTemplate binding from GridViewColumn

So, I have this ListView that needs to use some custom compare functions depending on what is bound. Right now the only solution I have found so far is to have a custom property to declare (SortablePropertyName) what has been used as binding source,…
Jonas Lindahl
  • 752
  • 10
  • 24
0
votes
1 answer

Passing in as command parameter the value of a WPF ListView GridViewColumn

In an WPF ListView I have ListViewItems that consist of three columns, first column is an auto-increment column, second one is a TextBox and the last one contains two buttons (Edit and Delete) in the same column. My ListView now looks as…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

Edit the code of a GridView column asp.net

I've been looking for a way to control the text that appears in a particular column of a GridView. For example consider a database with two tables Student and Class. I want to add a column to the GridView which print out all the students in the…
Evanescence
  • 729
  • 1
  • 10
  • 25
0
votes
1 answer

WPF How to add columns bound to array elements using GridViewColumns (ListView Binding)

I'm making a data visualisation app, and I've already got 3 columns written in XAML and successfully bound, but I'm trying to enable users to add columns at runtime. I'm trying to bind the column header to a value entered in a TextBox, which goes…
Kappawaii
  • 3
  • 2
0
votes
2 answers

GridViewColumn Command in HeaderTemplate

I have a GridView with GridViewColumn, the header uses a template with a textblox to show the column name. I want a command attached to this column, basically when the user clicks the column, a command in my VM gets called ? this is for sorting…
Pacman
  • 2,183
  • 6
  • 39
  • 70
0
votes
1 answer

How to bind boolean to GridViewColumn checkboxes (have code but doesn't work)?

I am trying to bind a bool value to checkboxes in a GridViewColumn, but it doesn't work. I even tried just returning false, but the checkboxes still look enabled. It only works if I type "False" into the xaml. The binded property is: public bool…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
0
votes
1 answer

WPF Dynamic change of GridViewColumn CellTemplate c#

I'm trying to learn something about the ListView and now I'm solving this problem: I have a listview defined in the behindcode. I would like to change gridviewcolumn celltemplate dynamically. For example by the use of checkbox or button, or other.…
Pavel Etrich
  • 69
  • 2
  • 9
0
votes
1 answer

GridViewColumn with no cells?

Is it possible to have 3 GridViewColumn but only 2 CellTemplate ? I want the first cell to "occupy" the 2 left columns ? Is it possible ?
Pacman
  • 2,183
  • 6
  • 39
  • 70
0
votes
1 answer

ObservableCollection not updating my GridViewColumns (MVVM)

Hi please could somebody help? I have a ListView which is bound to a ObservableCollection i.e StabCollection. The data displays perfectly. I have a couple of textboxes and a combo box to enable the user to edit the columns. When those textboxes are…
Russ
  • 19
  • 6
0
votes
1 answer

WPF DataGridColumn DisplayMemeberBinding

I have this ListView sort procedure: /// /// Handle the event of clicking on a column header to sort /// /// /// private void…
BrianKE
  • 4,035
  • 13
  • 65
  • 115
0
votes
1 answer

How to use ButtonFields in Dynamic GridViews

I'm having trouble concerning using dynamic web controls inside a dynamically created Gridview. I need to create the Gridview in the code behind because I'm trying to create a plugin architecture for controls to be added to a web page. Here is some…
geek_factorial
  • 85
  • 1
  • 1
  • 6
0
votes
1 answer

Binding a list to an asp.net gridview

I am binding a list to an asp.net gridview control which displays different profiles(having attributes such as name, password,description,date etc.) now the problem lies anyone can visiting the page is able to view all profiles but I want no one to…
Amanjot Singh
  • 29
  • 1
  • 3
  • 6