I'm having the following problem: I've implemented a custom headRenderer for my DataGridColumn. The idea is to have a dropdown menu when clicked on the column header. The problem is I don't know how to add a listener or pass a variable to the…
I have two tables: Transactions and Accounts.
Transaction has a foreign key IDAccount from Accounts Table.
I assign datasource property of Datasource property of Datagridview to Transactions Table.
I want to Accounts.description insead of IDAccount…
Whenever a user enters an invalid value into a DataGridCell, I highlight the complete row and the specific cell especially.
I found out that when I decrease the width of a column after validation, the red border of the invalid cell kepps its…
I have column holding the checkbox on a MVC kendo grid. When I click on the column but not on the checkbox, the checkbox position is slipping (moving towards right) and the click event is not delegating to checkbox.
I tried Change event and…
I am trying to make an invoice program, and i am trying to show the objects in a dynamic way inside a DataGrid. There would be only one column that the object has "Name", and extra columns like tax%, discount % and amount.(As an IntegerUpDown from…
I have a Grid with many columns.
On small pc screens, the columns are automatically resized. Instead of this default behavior, I want an horizontal scrollbar (and the columns not to be resized).
If I set the MinWidth property on each columns, I…
I want to use an attached property with a DataGridColumn for the sake of determining what data each row should display based on that columns value.
In compliance with the Minimal, Complete and Verifiable Example requirements:
App.Xaml.CS:
using…
I have a WPF MVVM application which in its main form has a datagridview.
This datagrid has some columns. One of them is of type DataGridHyperlinkColumn.
In the example below I will simplify the real case to focus on the interesting part that is…
I'm building a grid using @(Html.Kendo().Grid(Model.MyModel)) syntax:
@(Html.Kendo().Grid(Model.MyModel)
.Name("GridName")
.Columns(columns =>
{
column.Bound(c =>…
I created own custom attached property on DataGridColumn - utilities:ADPs.IsCellSelected to indicate whether any cell is selected in the column. I did similar for rows and it works fine.
Now I want to use this property to change the whole column…
I have a DataGrid implemented in a WPF-window inside a VSTO-AddIn, which is supposed to preview data to the user before it is pasted to an existing Excel-sheet. The CanUserSortColumns-Property is set to true, so the user is able to rearrange the…
I'm trying to retrieve a list of columns in a DataGrid that have a particular background color/brush, using the following:
Dim OutputCols As New List(Of DataGridColumn)
OutputCols = datagrid_Output.Columns.Where(Function(a) Not (a.CellStyle Is…
I have a DataGrid with 3 DataGridColumns. All 3 of them have separate dataFields.
I need to get the datafields into an ArrayCollection and pass it to a funciton. I dont want to hard code the ArrayCollection.
Is there any way to achieve this?
Say I have the following class:
public class Name
{
public string First {get;set;}
public string Last {get;set;}
public string FullName
{
get
{
return String.Format("{0} {1}", this.First, this.Last);
…
I have a Silverlight DataGrid with two columns. The headers of these two columns header have to be shown with a text box and column header title or name so that the text box can be used for filtering later.
So, I have used the following code to…