datagrid

Adding icons in DataGrid

Is there a way to put icons for each row in a DataGrid in c #? ...

How to get the value of a ComboBox within a DataGrid

While this may be a simple problem, I'm having a heck of a time coming up with a solution. I have a DataGrid with a ComboBox as an ItemRenderer for one of my columns. When the user selects a row, I want to get the ComboBox's selected value for the selected row. EDIT: I should have mentioned that the dataField2_Array property in myData...

How can I stop Silverlight DataForm immediately saving changes back to underlying object?

I have a Silverlight master-details DataForm where the DataForm represents a street address. When I edit the Address1 textbox, the value gets automatically committed to the bound Address object once focus leaves the textbox. If I hit the Cancel button, then any changes are undone because Address implements IEditableObject and saves its...

DataGrid In Java Struts Web Application

Hi After scouring the web I have edited my question from the one below to what it is now. Ok I seem to understand that I don't need all the capabilities of excel right now. I think i am satisfied having a data grid to display data. Basically i am working on Struts 2 and I wat my jsp page to have an excel like feel and hence looks like e...

ADO Entity Framework 4 to WPF Datagrid. DatagridComboBox nightmare.

The WPF datagrid -seems- like it's going to work, but the combobox implementation does not work straight from the designer. So I'm left wandering around in the XAML randomly changing things trying to get it to work. The problems are numerous. I want to display a foreign key relationship (with drop down) instead of a bunch of numbers fo...

Silverlight Datagrid: Highlight an entire Column?

I have a DataGrid in my Silverlight application, and would like to "highlight" an entire column when any cell in that column is selected. E.g., given this grid (where "[ ]" represents a cell): [ ][ ][ ] [ ][ ][ ] [ ][ ][ ] If I select a cell, like this [ ][ selected ][ ] [ ][ ...

WPF Toolkit DataGridCell Style DataTrigger

I am trying to change the color of a cell to Yellow if the value has been updated in the DataGrid. My XAML: <toolkit:DataGrid x:Name="TheGrid" ItemsSource="{Binding}" IsReadOnly="False" CanUserAddRows="False" CanUserResizeRows="False" AutoGenerate...

How do I detect when a cell's value has changed in Silverlight?

Hey folks, I'm working in Silverlight, trying to figure out how to set a grid cell font color based on the contents of the cell. I have an ObservableCollection bound to a DataGrid, and my items implement INotifyPropertyChanged so the grid updates as I change the values; it's all working perfectly, including letting me sort items and ke...

C# DataGrid CSV Import moving any size array into defined column grid?

I have a function to which an array has a large sum of CSV imported split data. I currently have it set as the code below however I'm having some issues getting the data to go into the separate columns than into a single one. What I would like to achieve is a non-redundant means of supplying a function a string array of any size, and def...

AvalonDock + UserControl + DataGrid + ContextMenu command routing issue

I'm getting weird behavior with command propagation from MenuItems of ContextMenu. I have the following kind of layout: ContextMenu is set for each DataGridRow of DataGrid inside UserControl, which in its turn is inside DockableContent of AvalonDock. If I get rid of either docking or UserControl around my grid there are no problems. Lis...

WPF/MVVM: Sync scrolling of two datagrids in different views

I have two datagrids side by side bound to different data tables and each with their own view. The datatables both have the same number of rows, and I want both grids to maintain the same scroll position. I am having trouble finding a way to do this using MVVM... anyone have any ideas? Thanks! -Steven ...

Get Row of DataGrid in User Control Page

My Question is related to access the rows in one page and putting conditions in another page. I need to check whether a datagrid has row in it or not. DataGrid is in .aspx page. Based on this checking i need to write a condition in .ascx page. the .ascx on which condition is checked is linked to .aspx page. Meaning that UserControl1.a...

WPF DataGrid Height of rows

I am using the WPF ToolKit DataGrid and trying to access the DataGrid's scrollable height. I have 26 rows in the DataGrid with a rowheight of 35. I traverse down the VisualTree starting at the DataGrid to find its ScrollViewer. However, the ScrollViewer's ScrollableHeight is 16.0. Why is this number so low? I am expecting somewher...

WPF data grid for financial style reporting?

Hello, I'm looking for a decent WPF data grid or solution involving one to represent financial data. I've looked at many - the WPF one, XCeed, Ingragistics, DevExpress, etc.... but none of them seem to offer the simple requirement I have: I want to be able to display group subtotals in their columns in the group row, e.g. GROUP 1 ...

background color issue in datagird(WPF)

How to select a row(e.g.frist row in datagrid) and set its background color to be e.g. red in C#? I have following code in my program: gameDataGrid.RowBackground = new SolidColorBrush(Colors.Red); The output is shown below, the background is not red.... ...

Silverlight DataGrid refresh problem

Hi, I have encountered a problem when I refresh the observable collection behind my Silverlight DataGrid (the DataGrid binds to a PagedCollectionView with an ObservableCollection as source). When I clear the observable collection and add the new items to the collection the DataGrid repositions to the top. I want the DataGrid to keep th...

WPF datagrid issue

Is it possible to set one or multiple rows' background color? ...

Silverlight 4 Datagrid Sorting

I'm having a heck of a time trying to get a silverlight datagrid to properly sort, and do so quickly (sub 1/10 second). Here's the scenario: -WCF callback every 1/5 of a second -Take the callback, match up to the existing record in an ObservableCollection -Update the ObservableCollection's properties -Bind the grid. I've tried a linq ...

Simplest way to create a wrapper class around some strings for a WPF DataGrid?

I'm building a simple hex editor in C#, and I've decided to use each cell in a DataGrid to display a byte*. I know that DataGrid will take a list and display each object in the list as a row, and each of that object's properties as columns. I want to display rows of 16 bytes each, which will require a wrapper with 16 string properties. W...

In Flex, how to drag a component into a column of DataGrid (not the whole DataGrid row)?

Hi guys, I have a custom component: <?xml version="1.0" encoding="utf-8"?> <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Declarations> </fx:Declarations> <fx:Script> <![CDATA[ [Bindable] ...