Questions tagged [datagridtemplatecolumn]

Represents a DataGridColumn customizable implementation

Learn more about DataGridTemplateColumn on MSDN.

275 questions
2
votes
1 answer

Lost the text boxes values inside the filter menu

I writting a html/javascript page with a kendo grid with filter menu. I have faced the following problem: when I add a new object to the data source (new row) and its kendogrid is reloaded (datasource.read) I lose the textboxes values inside the…
2
votes
1 answer

Access Datagrid row on TemplateColumn button click

I am implementing a file upload tool using Silverlight. In this I can browse for files and when I select a file then it is bound to a datagrid. In the datagrid I have a template column with a button to delete the particular item from the datagrid…
rahul
  • 184,426
  • 49
  • 232
  • 263
2
votes
1 answer

DataGridTemplateColumn: Handling mouse click

I have a simple DataGridTemplateColumn with one CheckBox in it.
dotNET
  • 33,414
  • 24
  • 162
  • 251
2
votes
1 answer

DataGridTemplateColumn get value of cell

I'm using the WPF DataGrid from the WPF Toolkit. I added a templated column to my DataGrid, which has a CheckBox in each cell. Now how do I access the values within these cells? My other columns in the DataGrid come from a DataSet. I can access…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
2
votes
2 answers

How to reuse a custom datagrid column code in WPF?

Using VS 2010 I plan to make several datagrid template columns, but they will all contain a textblock and I want to them to behave like a text column in terms of sorting, filtering, editing, etc. (For example, a column that has a textblock and an…
Tekito
  • 840
  • 8
  • 24
2
votes
1 answer

WPF - expose binding methods for inherited column

A reoccurring issue I have is needing to create enhanced text columns for datagrids. By that I mean columns that act just like normal text columns, but with an additional graphic or feature, like an image displayed next to the text. So I'm using…
Tekito
  • 840
  • 8
  • 24
2
votes
2 answers

WPF DataGrid DataGridTemplateColumn ComboBox ItemSource

I'm trying to create a very simple CRUD WPF application. I have a datagrid with 2 columns, ID, and Category. For category, I want to be able to select from a list when adding and editing. Here's what I have so far in the xaml:
2
votes
2 answers

wpf bind checkbox command inside DataGridTemplateColumn.CellTemplate

This has been asked several times with different variations but I can't get any of them to work. I'm trying to get a method called in my viewmodel when a checkbox (in a datagridTemplateColumn.cellTemplate) is clicked in my view
2
votes
0 answers

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 double-click on a TextBox a Popup appears and I select the new content of the TextBox from it (ComboBox inside a…
boo_boo_bear
  • 189
  • 1
  • 4
  • 14
2
votes
1 answer

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 an Observable Collection Property in…
angad.stjudes
  • 186
  • 1
  • 6
2
votes
3 answers

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 object implements INotifyPropertyChanged and has…
user2023861
  • 8,030
  • 9
  • 57
  • 86
2
votes
0 answers

How to Bind DataGridTemplateColumn.ClipboardContentBinding to SelectedItem of a Combobox that placed inside it?

I need to bind DataGridTemplateColumn.ClipboardContentBinding to SelectedItem of a Combobox that placed inside that.In fact I need to bind Combobox.SelectedItem to the current row of DataGrid.I tried the code below but it doesn't work.
mahboub_mo
  • 2,908
  • 6
  • 32
  • 72
2
votes
1 answer

SelectedItem is null in DataGridTemplateColumn with ComboBox

I have a Datagrid and DataGridTemplateColumn which is ComboBox
artos
  • 751
  • 1
  • 10
  • 25
2
votes
0 answers

datagridcheckboxcolumn with dynamic columns and binding...

I've spend the past months reading questions, answers and advice on StackOverflow. I'm a beginner in C#, .Net, WPF and MVVM. I'm developing a PMS (property management system) for a friend's hotel. I've often been stuck for days on some problems. So…
2
votes
2 answers

Preserve default WPF DataGrid cell editing behaviour when using DataGridTemplateColumn

I am working on a WPF MVVM application that uses DataGrids to display data. I am manually defining the columns, and most of the time I use DataGridTextColumn. When navigating the resulting datagrid using the keyboard, a cell can be highlighted by…
Pieter Müller
  • 4,573
  • 6
  • 38
  • 54