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…
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…
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…
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…
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…
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:
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
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…
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…
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…
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.
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…
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…