The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
4 views

How to access datagrid template column textbox text WPF C#

I need to access the text in datagrids template column from code behind, but I don't know how. I need to change the text to whatever string I pass to it on SelectionChanged event. Can someone please ...
0
votes
0answers
5 views

wpf set the content of datagrid's selected templatecolumn's textbox

I need to find out how to pass a string to ComboBox that's inside of a TemplateColumn of a DataGrid. The idea behind is that whenever I DoubleClick on a TextBox a Popup appears and I select the new ...
0
votes
2answers
15 views

c# datagridview column autosizemode

I wish that by default the columns uses the AutoSizeMode = DisplayedCells; but I wish also the possibility to resize the columns, but DisplayedCells type doesn't allow to resize.. any ideas?
0
votes
0answers
46 views

DataGridTemplateColumn sort breaks when grid is hidden and displayed again

I have a data grid that lists documents. We use this grid in a tabbed application, where one tab is used to search for documents, and other tabs are used to add/edit/delete documents. The problem ...
0
votes
1answer
28 views

Is there a code-behind equivalent for TextBlock ScrollViewer.CanContentScroll=“True” for DataGridTemplateColumn?

For a TextBlock in XAML, you can do the following inside a DataTemplate: <TextBlock Text="myTextBlock Text" VerticalAlignment="Center" Margin="0,0,5,0" ScrollViewer.CanContentScroll="True" ...
0
votes
1answer
32 views

Hide linkbutton in Datagrid templatecolumn for the first row only

I'm trying to hide the "Delete" linkbutton in the datagrid for the first row only, but would like to display "Delete" linkbutton button in rest of the rows. How can i achieve that, any help is much ...
0
votes
1answer
113 views

Implementing Combo Box Select All button in Data Grid Template Column Header

Inside my CreateBatchViewModel class-->View Model for CreateBatch.cs I am binding Datagrid ItemsSource="{Binding VersionList,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" where VersionList is ...
1
vote
1answer
58 views

Silverlight DataGrid Password Text Column

New problem. I am showing information in a Data Grid that can be edited. However, one of the columns is a Password field from the Database. Is it possible to mask the text shown to the User much like ...
0
votes
1answer
85 views

DataGridTemplateColumn using ContentPresenter in HeaderStyle

I am using couple of DataGridTemplateColumns in my XAML DataGrid, each one of which is group of text boxes, since I wanted a grouped header layout for the columns (e.g. merged columns as headers in ...
0
votes
0answers
28 views

DataTemplateColumn with Color Picker FrameworkElementFactory bind converter?

I have a datagrid which i populate dynamically. Weill in one of the columns I want to have a colorpicker from the extended wpf toolkit. Also I want whenever the user changes color from the color ...
1
vote
1answer
97 views

How to get index of current collection element while building DataGrid with DataGridTemplateColumn?

I'm trying to display an array in a DataGrid like this: XAML: <DataGrid ItemsSource="{Binding Items}" AutoGenerateColumns="False" > <DataGrid.Columns> ...
0
votes
2answers
40 views

DataGrid— one column uses different data from the others

I have a DataGrid I'm binding to a DataTable, and displaying three BoundColumns as a result. I would like to have a fourth column that connects with different data-- for instance, if column #3 in ...
0
votes
3answers
200 views

How do I prevent a DataGridTemplateColumn from going into edit-mode based on some condition?

I have a DataGridTemplateColumn that is editable. I only want the user to be able to edit the content of a cell in this column if the business object satisfies some criterion. Suppose my business ...
0
votes
0answers
55 views

How to set up a wpf trigger to connect properties between two DataGridTemplateColumns?

I have a DataGrid with 2 columns, each of them defined as DataGridTemplateColumns. Now I want to make the 1st textbox of the 2nd column visible depending on the listbox selection index, which resides ...
0
votes
2answers
40 views

Datagrid DataGridTemplateColumn based on navigation prop

I have a datagrid for my customer data. My customer entity has a collection of notes exposed. I need a method of displaying an image in a column based on the notes status, if any of my notes have a ...

1 2 3 4 5 10
15 30 50 per page