0
votes
2answers
83 views

Getting WPF Data Grid Context Menu Click Row

I have a WPF DataGrid <DataGrid AutoGenerateColumns="False" Name="dataGrid1" IsReadOnly="True" > <DataGrid.Columns> <DataGridTextColumn Header="Site" Binding="{Binding Site}" ...
0
votes
0answers
58 views

Setting DataGridTemplateColumn CellTemplate programmatically

This question is similar to others that have been posted, but none seem to offer the solution that works here. Problem: Trying to create a DataGridTemplateColumn at runtime with a particular ...
0
votes
1answer
79 views

How to improve performance of WPF Grid control (.NET 4.0/4.5)?

Definition: Having 2D-array of string (about 10 columns, 1,600 rows, fixed length of 7-char) serving as a data source for WPF .NET 4.0 Grid control, the following code snippet has been used in order ...
0
votes
0answers
47 views

WPF C# datagrid fix view row (fix scroll)

i am working on WPF datagrid and want to fix view after insert row at top, whenever row insert at top view scroll down by 1 row, i am using following code int i = 0; DataTable dt = null; ...
-1
votes
2answers
79 views

Insert hyphen automatically after every 4 characters in a TextBox

I want to implement some thing that when a user enters 4 characters then a hyphen should be added to the text and then again user enter 4 characters and then again hypen should added automatically in ...
0
votes
0answers
49 views

cannot append a row to datagrid WPF

I scratched my head a lot and worked also, but still not able to add a row to a datagrid. I mean i cannot append, when ever i am adding a new row the previous data is going away and only tht one row ...
1
vote
0answers
279 views

Bind Dictionary to DataGridComboBoxColumn WPF

Helo guys.. My idea is make use DataGrid as a mapper template, first the grid will load data from, let say "Table A", whis one of the colum will display data from let say "Table B" i have a "Table ...
0
votes
1answer
918 views

DataGrid with dynamic columns and rows

I have requirement where I have to show a tree view with list of tables and if user selects any table then it should show a grid with list of columns & rows should have a DataGridCheckboxColumns, ...
0
votes
0answers
236 views

DataGrid horizontal scrollbar disabled

I have WPF DataGrid with ItemsSource bound to ICollectionView implementation. Collection is full of items before DataGrid is even instantiated. All columns within DataGrid are of ...
1
vote
1answer
473 views

WPF Style DataGridHyperlinkColumn

I created a style for a hyperlink control: <Style x:Key="MyHyperlink" TargetType="{x:Type Hyperlink}"> <Setter Property="Foreground" Value="{StaticResource HyperlinkBrush}" /> ...
0
votes
1answer
602 views

Trigger on attached property of DataGridTextColumn

I am trying to define a custom attached property on DataGridTextColumn and writing a DataTrigger against it in my xaml file. Here is how the attached property (FilterDisplayStyle) is defined in my ...
0
votes
1answer
594 views

Implementing Filtering (Text and Combobox) in DataGrid

I am trying to put up some code that will allow a DataGrid to be filtered by a TextBox or ComboBox. I have already put up filtering code for the TextBox and now for the Combobox type filter, I am not ...
2
votes
2answers
291 views

Passing large sets of data into user controls

Since UserControls in WPF have to have parameterless constructors, what is the correct way for supplying them with fairly complex data that is needed "near" the time of construction. I have tried ...
11
votes
2answers
9k views

Disable DataGrid current cell border in FullRow selection mode

I am using a DataGrid in row selection mode (i.e., SelectionUnit="FullRow"). I simply want to remove the border that is being placed around the current cell when the user highlights a row in order to ...
2
votes
2answers
3k views

WPF4 DataGridHeaderBorder in a xaml Style

Making a separate question, related to comments on the answer to http://stackoverflow.com/questions/2481946/wpf-4-what-happened-to-datagridcolumnheader It appears I can use DataGridHeaderBorder in a ...

1 2
15 30 50 per page