Questions tagged [gridviewcolumn]

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

104 questions
1
vote
1 answer

How to make a GridViewColumn readonly/disabled?

I have a reference to a GridViewColumn in my xaml code as RuntimeColumn but I am not able to disable it or set it to readonly programmatically. I will need to do this at runtime without databinding. I tried: this.RuntimeColumn.IsEnabled =…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
1
vote
1 answer

WPF GridViewCellTemplate and GridViewColumnHeader width issue

I have a ListView with a GridView. Two of the GridViewColumnshave the header width less than the content defined in the DataTemplate, as shown The XAML is defined as follow:
ctt_it
  • 339
  • 1
  • 6
  • 22
1
vote
1 answer

Access control binding information from GridViewColumn

I have code like this
Sathish
  • 869
  • 2
  • 13
  • 28
1
vote
1 answer

WPF GridView Column and dynamic cell template based upon data value

I have a GridView where I can generate the Columns at run time based upon the configuration settings. e.g Text Column = to show the text in it Image Column = to display the graphic in there. but the problem is that the whole column would be shown…
Abdullah
  • 21
  • 1
  • 3
1
vote
0 answers

Automatically resize columns of wpf GridView

I've gone through a few posts with similar requirements but haven't found a fully working solution yet. I have a GridView in a ListView with a few columns
Boumbles
  • 2,473
  • 3
  • 24
  • 42
1
vote
2 answers

Multiple databound controls in a single GridView column

I have a grid view that is data bound to a dataset. In a grid I have a column DefaultValue, which has three controls in it - a dropdownlist, a checkbox and a textbox. Depending on the data that is coming in it can switch to any of these controls.…
Victor F
  • 917
  • 16
  • 30
1
vote
1 answer

WPF: Problem with binding values to ComboBox inside GridViewColumn

My Views dataContext is bounded to a presentationModel with two observableCollections Members. In the View I have one listView which ItemSource is bound to is the first observableCollection. In one of the LilstViews column I want to present values…
KaJo
  • 199
  • 4
  • 13
1
vote
1 answer
1
vote
1 answer

How to set width=auto on GridViewColumn through Bindings?

I need to set the width of my GridViewColumn to either a value, or auto, depending on a boolean. I currently have this set-up: public string DepotAssignmentWidth { get { return (hasBoolean) ? "50" :…
Chris
  • 5,882
  • 2
  • 32
  • 57
1
vote
3 answers

How to change text color of a gridViewColumn in WPF?

I have A listView In which i want to show items from dataBase. It works fine, But i want to see the items shown in cells as white in a purple listview, How to do it ?
nizam uddin
  • 341
  • 2
  • 6
  • 15
1
vote
1 answer

Wpf binding to Foreground with GridViewColumn

I'm doing :
Tim
  • 2,887
  • 10
  • 33
  • 33
1
vote
2 answers

Using MultiBinding when DataGridColum header was customized

I'm custmozing the DataGridColumns of a ListView. I have many situations : 1- somtimes, the column header is just one word 'Id', in this case I use this code :
Wassim AZIRAR
  • 10,823
  • 38
  • 121
  • 174
1
vote
0 answers

how can make runtime ListView with binding? wpf

for example I can't get result from this code! please help me, tnx. :) GridViewColumn gvc6 = new GridViewColumn(); gvc6.DisplayMemberBinding = new Binding("sum"); FrameworkElementFactory txt = new…
1
vote
2 answers

How to bind to a property on a gridviewcolumn from its celltemplate

The general problem I want to solve is to have just one datatemplate for a checkbox which I can then use for many different columns in a listview (using a gridview). In all examples I've seen a seperate template is created for each binding which…
Alternator
  • 154
  • 1
  • 2
  • 11
0
votes
1 answer

How can I change the fontsize of a GridviewColumnHeader?

I included everything below since it's not that much. I wasn't sure if something I put elsewhere was causing my setter to not work properly.
Yatrix
  • 13,361
  • 16
  • 48
  • 78