datagrid

Silverlight 3 Datagrid: Is it possible to apply different styles to each GroupRow level?

I can style GroupRows by creating a DataGrid.RowGroupHeaderStyles style, but this applies to all GroupRows. eg If I am grouping by 2 columns. I would like a different background color for column 1 GroupRows and column 2 GroupRows. Is this possible? Update Here's how I've accomplished this, but its a bit of a hack. Hopefully someone w...

Setting WpfToolkit datagrid column editing style.

Hi, How to make a single datagrid column editable if a particular condition is true? I'm using MVVM pattern in my application. Model :: public class Book : INotifyPropertyChanged { public int BookId {get; set;} public string Title {get; set;} public string SerialNumber {get; set;} public bool CanEditSerialNumber...

Adding records when binding a datagrid to a list of objects in a winforms app

I have the following classes: public class MyItems : List<MyItem> { ... } public class MyItem { ... } I've instantiated MyItems and assigned it to the DataSource property of a WinForms datagrid. Everything displays properly, but when I try to add rows, nothing happens. What I do is case the grids DataSource back to MyItems, add an ...

How to bind to a data-context outside of WPF toolkit datagrid

Hi, OK So I have a combo box which selects an administrator from a list of administrators: <ComboBox x:Name="adminCombo" ItemsSource="{Binding AdminsList}" DisplayMemberPath="Name" SelectedValue="{Binding Administrator}" SelectedValuePath="Name"/> and below this I have a WPF Toolkit DataGrid. E...

Flex: Displaying properties from two objects in a datagrid

Previously I post a discussion on this matter on Flex Adobe forum and still don't understand what needs to be done. So, I'll try my luck again on stackoverflow. I'm using drag and drop data binding functionality in flash builder 4 on a data-grid. However, the data I need to show need to be query from another object. <mx:DataGrid id="da...

dynamic width for DataGridColumnTemplate

I'll keep it short, is there any way to define a set of DataGridTemplateColum's and not have their width be static (such as my values 300, 130 and 900 below)? "*", and "Auto" throw exceptions. I want to have the datagrid be scalable. That is, when the user resizes their browser (it's a Silverlight App), there is not an ugly edge to the ...

Flex:Problems in DataGrid default sorting

Hey guys, I have a datagrid with data like this: Column1     Column2     1                 10     2                 11     3                 10     4                 10 When clicking Column2 and using Default Sort,the datagrid turns into this: Column1     Column2     3                 10     1    ...

Replace or Disable null-value in Datagrid in a formsapplication

I'm working on a formsapplication with a datagrid in it. How can I disable or replace (null)-values in cells when im databinding the grid to a database. When I am in the Designer view and clicking on the little arrow on the grid,I only see the option "Autoformat" ...

ASP.NET C# - Display Embedded Web Objects in Datagrid control

Im using Visual Studio 2008, on an ASP.NET C# website. Overall what I want to accomplish is that when an item from a list of items is clicked, a video will display on the same page. I want this done all in one aspx page, I dont want to create a new page for each video file. The video files are hosted for me on www.screencast.com. Wha...

Flex ComboBox in a Datagrid loses values when I scroll horizontally

Hello, I have a very strange problem in a Flex 3.4 Datagrid. One of the columns is a ComboBox - I have my own custom renderer for the ComboBox. I use it to select my data and then make a "save" to the db. Upon return the comboBox loses its value. Even stranger is that when I scroll the datagrid area to the left (by moving scrollbar righ...

WPF DataGridComboBoxColumn

Hello I'm using the WPF DataGrid and I'm trying to get the ComboBox Column to work. <tk:DataGridComboBoxColumn Header="GroupLevel" DisplayMemberPath="Type" SelectedItemBinding="{Binding Path=GroupLevel}" > <tk:DataGridComboBoxColumn.EditingElementStyle>...

how to get rid of spacing between several DataGrids ? (flex3)

I've got a Grid whose GridItems contain another DataGrids. (= the DataGrid are nested in the Grid). Now I changed the Grid's horizontalGap-StyleProperty to zero. But because there are several DataGrids in one GridItem, there is still about 5-10px spacing in between those DataGrids. How to get rid of these spacings ? Thx ...

How to programmatically reference a Silverlight DataGrid cell?

Most grids use a syntax such as MyGrid[row, col] to reference a particular cell programatically. How is this done, say, in C#, for the Silverlight DataGrid? All examples I've seen thus far use only XAML. Thanks. ...

Dojo 1.4 - <a href> in dojox.grid.DataGrid's cell behaves differently from Dojo 1.3's

In Dojo 1.3 I was able to populate dojox.grid.DataGrid's cell with an <a href> HTML element (e.g. <a href='/test?id=xxx'>xxx</a>) and the (clickable) html link would then be shown. Dojo 1.4 breaks(?) this behaviour and the literal string is shown (not a link). How can I achieve the same behaviour in Dojo 1.4? ...

WPF DataGrid Validation error not being caught

Hello I am trying to use exception validation on a cell in a DataGrid together with a style on the DataGridTextColumn's EditingElementStyle to set a tooltip with the content of the error. The error occurs but is not being caught or displayed within WPF. The code and exception are shown below. Can someone tell me what I need to fix this...

Flex DataGrid Remove Header MouseOver Highlighting

I want to remove the highlight that occurs when mouse over occurs on the headers of a DataGrid. ...

I need a data model for a Flex Datagrid list inclusion/exclusion widget

I'm working on a flex UI that has to create an inclusion list from dynamic data. Rather than belabor things with an analogy, here's a quick sample of what my inputs are and what my expected outputs are. First, the data grid will be populated with something like this: {id="1", v1="Value1.1", v2="Value1.2"}, {id="2", v1="Value2.1", v2="V...

Accessing dojox.grid.DataGrid cells by name instead of index

I have a menu of checkbox menu table column names and would like the checking/unchecking of the column name to result in the table column being hidden or shown. I would like to be able to get the column to change via it's cell.name property rather than it's index. Currently, I am accomplishing this by generating an associative array o...

Drag and drop in dataGrid, custom cursor during drag not working (self answered, new question for the bounty)

EDIT 12/21/09, End of the day: I have managed to answer my own question so my bounty rep is lost to me :-( Anyway since my answer solves my problem I will award the bounty to anyone that can answer this. My solution uses AS to remove the the rollOut/rollOver while a user is dragging. In a dataGrid. How can you get the same result withou...

Editing newly added row in Silverlight 3 DataGrid using MVVM

I am trying to use the Silverlight 3.0 DataGrid with the MVVM design pattern. My page has a DataGrid and a button that adds an item to the collection in the VM using a command (from the Composite Application Library). This works fine, and the new item is displayed and selected. The problem I can't solve is how to begin editing the row. ...