columnheader

Can System.Windows.Forms.ColumnHeader use a different image then one from the main ImageList?

I have an ListView set up to sort, and I have that working well. However, when the ListView is sorted, no indication is provided as to the current sort column and order. I tried a solution setting the ColumnHeader.ImageKey property whenever sorting, but I want to be able to use images that aren't the size specified by the ListView's Sm...

BackColor of ListView ColumnHeaders

Is there a way to set the BackColor of the ColumnHeaders of a ListView? ...

C#/WPF: Toolkit DataGrid - Transpose rows and columns

Hello, I've a List<DetailObject> someList; which looks like this: public class DetailObject { public string Titel { get; set; } public int Value1 { get; set; } public int Value2 { get; set; } public int Value3 { get; set; } } Does anyone know how I can use (with DataGrid.AutoGenerateC...

Why wont my column sort in a winforms .NET datagrid?

I have a WinForms .NET datagrid whose data source is a List<cLineItem> called lines. cLineItem is very simple class with properties like units (int), description (string) and unit amount (float). In code, i populate the list of lines and then set the data source: dataGridView1.DataSource = lines; This correctly populates the grid, ho...

ASP.NET Listview Column Width

In windows applications we can change the listview's column width by just dragging the header of the column. How can I done that in a ASP.NET listview? ...

How to set the DataContext on a DataGrid Column Header

In my Silverlight 3 user control I am showing a basic DataGrid control. I need to generate the columns programmatically as follows: Style headerStyle = (Style)Resources["ColumnHeaderStyle"]; DataGridTextColumn col = new DataGridTextColumn(); col.HeaderStyle = headerStyle; dataGrid.Columns.Add(col); The style is defined as follows: <S...

WPF Datagrid binding custom column headers.

I am trying to figure out how to bind a WPF DataGrid's column header and main data to a data source using an MVVM pattern. The result I'm looking for would look like this: I've successfully styled the headers here, but I'm unsure how to bind the values in the headers. Specifically, the IsChecked property of the check-box, the selected...

Column Header for a WPF TreeView

I am using the WPF TreeView to display some hierarchical information. Each item in the TreeView consists of several attributes, so I am using a Grid within my HierarchicalDataTemplate to display these attributes: <HierarchicalDataTemplate x:Key="ArtistTemplate" ItemsSource="{Binding XPath=Title}" ItemTemplate="{StaticResource Ti...

WPF data grid - Column Header not aligned with data rows

Hi, I am using Datagrid in WPF. This is a very simple and basic implementation. I not using any styles. I created a simple datagrid : <dg:DataGrid x:Name="dg" > </dg:DataGrid> and populated it with data as: dg.ItemsSource = " H E L L O W O R L D!".Split(); Grid gets properly populated but the columnheader of the grid i...

Editable Column headers for WinForms DataGrid Control?

Hi all, I'd like to display a DataGrid control where the column headers are editable by the user. Is this possible? ...

WPF Toolkit Datagrid Headers and Empty Source...

Hi, How could I make the Datagrid display the headers in case there's no row to display? My Datagrid is "completely" read-only with: "AutoGenerateColumns ="True" "CanUserAddRows="False" "CanUserDeleteRows="False" "CanUserResizeRows="False" "IsReadOnly"="True" If there's no row, then the headers aren't displayed, if I add even an empt...

WPF Listview Columnheader Click Event

I have a ListView (GridView) in WPF and I'm trying to implement sorting according to http://msdn.microsoft.com/en-us/library/ms745786.aspx. In my case, the celltemplate for one of the columns contains an Expander. Now when I click the expander header, the GridViewColumnHeader.Click event fires. How do I prevent this from happening? ...