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...
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...
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 ...
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...
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...
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 ...
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 ...
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"
...
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...
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...
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>...
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
...
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.
...
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?
...
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...
I want to remove the highlight that occurs when mouse over occurs on the headers of a DataGrid.
...
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...
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...
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...
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. ...