datagrid

DataGridCheckBoxColumn updates source and is validated only after focus loss.

I have a problem with DataGrid from WPFToolkit. My grid has DataGridCheckBoxColumn. When I change value of some cell in this column, validation and real source updating occures only after a cell has lost focus. So, if I change checkbox value in a cell and leave focus inside it, the property of a binded object wouldn't be changed. Colum...

Flex 3: How do I get the DataGridColumn's dataField in its ItemRenderer?

I'm trying to reach the dataField of a DataGridColumn in the itemRenderer. Below is the dataGrid: <mx:Script> <![CDATA[ [Bindable] public var weeksOfMoth:ArrayCollection = new ArrayCollection([ {monday:30, tuesday:31, wednesday:1, thursday:2, friday:3, saturday:4, sunday:5}, {monday:6, tuesday...

Flex - Hide DataGrid Columns and Show Header and Header Text

Is there a way to hide all the DataGrid columns, and not make them included in layout, and still show the header row along with its header text? I was able to make the DataGrid columns not visible, and not included in layout, but that makes the header text no longer appear. If no data comes back from the data provider, I want all the...

How to quickly develop a sortable, paged data grid of a MySQL table in PHP?

How do I quickly develop a sortable, paged data grid of a MySQL table in PHP/JavaScript? If the grid could sort/page and download data via AJAX it would work better, of course :) I could develop it manually using AJAX to update the datagrid on sort/page navigation, but I was wondering if any datagrid components already existing that wo...

Why the content of the pure IEnumerable is invisible for WPF DataGrid?

Let's say I have a datagrid with itemsource binded to property Collection, which is for example IEnumerable. Of course I wrote appropriate getter and setter for it. Now, when I assign to this property (Collection) just IEnumerable (as the result of some method), like: Collection = FooMethod(); // FooMethod returns IEnumerable<MyClass> ...

Add a row in Dojo datagrid

Struggling to find a bit of code to easily understand. How do you add a row and clear all rows in a Dojo datagrid (version 1.4.2). Lets say the data is 2 columns with customerID and address. I am using dojo.data.ItemFileWriteStore to store values in - but again not quite sure how this should be used. It can't be that hard. Cheer...

WPF DataGrid Control Template

I am trying to customize the WPF 4.0 DataGrid and need a listing of its control template (also the control template for the nested DataGridColumnHeadersPresenter - PART_ColumnHeadersPresenter). I found this link with provides many control templates, but DataGrid is missing from the list! Is there any place where the control template for ...

Get containing row from a CheckBox inside of a DataGrid

I have a DataGrid that has auto generated columns. In side of the AutoColumnsGenerated event I am adding an additional column. This column is a DataGridTemplateColumn which includes a DataTemplate with it's VisualTree set to a CheckBox. I am adding a handler to the CheckBox.ClickEvent in which I will chain a value in the associated row. ...

Creating custom Layouts with DataGrid and Adding Components in its cells at runtime ?

Hello, i am trying to creat a gallery applicaiton, i have adobe's imageViewer component and i want to make a custom layout functionality on my applicaiton. 1- How can i creat custom (2*3 - 3*3 - 4*4) layouts at runtime ? 2- How can i add my imageViewer component in it at runtime ? I tried to use datagrid component but adding and dele...

How to change WPF DataGrid cell widget background color according to cell background color?

The background I use VS2010, DataGrid (the one delivered with WPF) and I manually create rows and columns. I set various colors for rows, depending of their state (but for simplicity let's say it was yellow). It worked because datagrid used labels for displaying text, and when I set background for row, it is reflected in label widget as...

Don't highight selected cell when user clicks in a data grid row.

I have a DataGrid that is setup like this: <DataGrid AutoGenerateColumns="True" GridLinesVisibility="Horizontal" IsReadOnly="True" ItemsSource="{Binding Documents}" SelectionMode="Single" SelectionUnit="FullRow" /> Can somebody point me in the right direction for making the UI look as t...

ASP.NET : Access controls declared in TemplateColumn of DataGrid

ASCX File: <asp:datagrid runat="server" id="gridFormFields" datakeyfield="FieldID" autogeneratecolumns="False" onitemcommand="gridFormFields_ItemCommand" onitemdatabound="gridFormFields_ItemDataBound"> <columns> <asp:templatecolumn> <itemtemplate> <asp:imagebutton runat="server" id="buttonMoveUpFormField" resour...

How to Bind data to DataGridComboBoxColumn in DataGrid using MVVM

This is driving me crazy. I have a DataGrid which has a DataGridComboBoxColumn which I want the user to be able to use to select from. This is the basic outline of my grid. <DataGrid ItemsSource="{Binding GoalList}" DockPanel.Dock="Bottom" AutoGenerateColumns="False"> <DataGrid.Columns> <DataGridComboBoxColumn ItemsSource="{Binding Life...

Generating columns dynamically in the WPF DataGrid?

<DataGrid ItemsSource="{Binding}" AutoGenerateColumns="False"> <DataGrid.Columns> <DataGridTextColumn Header="First Name" Binding="{Binding FirstName}" /> </DataGrid.Columns> </DataGrid> In the above snippet the DataGrid columns are hard coded in the XAML. Is it possible to have the column definitions be defined elsewhere, ide...

Resizable datagrid is not consistent in rendering its background image

Hi Guys, I have a datagrid in silverlight, it contains two template columns, i set a background image in each one of them. I made this datagrid resizable using codebehind logic. I have done my calculations in double values so that no fractional space is left in the grid. What I want is that my datagrid should not show any vertical line...

WPF: How do I start styling a DataGrid that was built using MVVM?

I have a list of names that I'd like to have bound to a datagrid for editing/sorting/etc. But, I don't like how the DataGrid is displayed at all. Columns are placed in Alphabetical order when I really want a custom order (and I wish I could hide the ID column, or make that column not editable). I'm not sure how to start doing any of this...

Is it possible to choose Datagrid grouping order in WPF?

Hi guys, I've just started to learn WPF/C# and I picked a project which would actually be useful to me instead of variations of Hello, World! programs. It's a small app that polls a game server for player information and binds it to a Datagrid. The data is grouped by team, which can be one of four values: Blue, Red, Spectator, or None....

How to focus a row in a WPF 4.0 DataGrid

I am setting the SelectedItem of a DataGrid in code behind, but this does not move the focus to that row. I have tried the following: dgEmployees.SelectedItem = emp; dgEmployees.CurrentItem = emp; dgEmployees.ScrollIntoView(emp); DataGridRow dgrow = (DataGridRow)dgEmployees.ItemContainerGenerator.ContainerFromItem(emp); dgrow.Focus(); ...

Is there a nice Java object to hold a 2D grid of doubles?

Is there a data type that simply holds a 2D grid of doubles? Preferably in the JDK but I'm happy to use an open source 3rd party library like apache commons etc. I'm looking for a class, and/or complimentary helper classes, that allow methods like these: Grid g = new DoubleGrid(100, 100); double min = g.getMinValue(); double someCell...

WPF Toolkit's DataGrid sort, change reflect to the data source ?

Hi, When I sort one of the columns (click the header column) in DataGrid, does the change on UI (the row order) reflected back to the data source ? I use List object as source. ...