datagrid

How to get bind a (WPF or Infragistics) DataGrid to a List<List<string>> or List<string[]>?

I need to bind a collection of strings inside a collection of strings to a DataGrid (Infragistics). However, when I bind it like this: <DataPresenter:XamDataGrid x:Name="xamDataGrid" DataSource="{Binding TheCollection}"> to either this: public List<string[]> TheCollection or this: public List<List<string>> TheCollection I get t...

WPF DATAGRID - How to binding two tables fields in xaml

Please help. I have two relational tables which are Employee and EmployeePosition. I am trying to bind two tables into one datagrid on the xmal file without using LINQ to join those two table into one collection from the c# code behind. HOW CAN I DO IT? The sample code and table below Employee EmployeeID FirstName LastName PositionID ...

Datagrid Binding with two tables

Please help. I have two relational tables which are Employee and EmployeePosition. I am trying to bind two tables into one datagrid on the xmal file without using LINQ to join those two table into one collection from the c# code behind. HOW CAN I DO IT? The sample code and table below Empolyee EmployeeID FirstName LastName PositionID ...

Dojo DataGrid loading selected items

I have a DataGrid and want a user to select multiple items and click a button to do something with those items (such as delete). When only a few items are selected, the deleting works, but if the user selects all the items without scrolling slowly over them, some of the selected items are null. I also tried grid.removeSelectedRows(), b...

Highlight selected cell of a flex data grid

Hi I have a flex data grid.I need to highlight the selected cell of the data grid.can u please help me? ...

Extending Flex DataGridColumn for custom sorting function

I extended the DataGridColumn because I wanted to include a custom itemToLabel function (to be able to show nested data in the DataGrid. See this question. Anyways, it also needs a custom sorting function. So I have written the sorting function like so: private function mySortCompareFunction(obj1:Object, obj2:Object):int{ var curre...

Silverlight Datagrid Refresh Data with SelectionChanged Binding

I am building an issue tracking system that uses Silverlight. I use DataGrids to display the issue lists, set the selected index to -1 so that no row appears selected and then use the selection change event to popup an issue details window for the particular selected issue. When I try to refresh the DataGrid by rebinding it to its Items...

WPF Datagrid row number.

I have a datagrid. I would like a column that displays simply 1 2 3 4 ... in the rows, up to as many rows as I have being created from my other data bindings. <dg:DataGridTextColumn Header="#" IsReadOnly="True" Binding="...." /> ...

Transposing a set of rows as column in a Flex Data Grid

I have an array like the following one public var sal:Array=[ {empNo:1001, sal:1000, exp:400}, {empNo:1002, sal:3000, exp:240}, {empNo:1003, sal:1000, exp:452}, {empNo:1004, sal:5000, exp:348}, ...... {empNo:1550, sal:2000, exp:330}, ]; I need to show data using a 3 row flex data grid wh...

Custom Itemrender in Datagrid with Datatip

Hi community, I have a datagrid with one datagridcolumn in it. Without a custom itemrenderer I can use a datatipfunction for showing a custom datatip but now I want to have a custom item render for colouring the rows differently. Therefore I extended a label and changed the data method but now my datatipfunction does not work anymore. ...

Cannot Convert to ClassFactory

I have this item renderer MyRenderer.mxml <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" implements="mx.core.IDataRenderer" > <mx:Script> <![CDATA[ [Bindable] public var greylist : XML; public function newInstance() : * { return new MyRenderer(); } ]...

How to remove DataGrid's blank row when binding to a ObservableCollection<T>?

Hi guys I'm getting nuts here with this: ObservableCollection<Employee> list = new ObservableCollection<Employee>(); dgEmployees.ItemsSource = list; When you debug the list variable, it's empty (list.Count =0), but then I bind it to a DataGrid (WPFToolkit), it shows me a blank row. In immediate window, for dgEmployees.Items it's sho...

Flex datagrid sorting not preserved across dataprovider changes.

I have a flex datagrid. it is bound to an array collection. if the user sorts on column X it works fine. then, if the user causes the array collection to change, the datagrid forgets that it was sorted on column X. what do I need to do to preserve this sort preference so that the new array data will appear sorted by column X? ...

DataGridColumn with ItemRenderer, how to set dataProvider properly?

I'm building a DataGrid to display data similar to the following XML: <foo> <entities> <entity> <name>Jim</name> <trend> <quantity>10</quantity> <quantity>20</quantity> <quantity>30</quantity> </trend> </entity> ... </entiti...

Pass value of a field to Silverlight ConverterParameter

Hi all, I'm writing my very first Silverlight app. I have a datagrid with a column that has two labels, for the labels, i am using an IValueConverter to conditionally format the data. The label's "Content" is set as such: Content="{Binding HomeScore, Converter={StaticResource fmtshs}}" and Content="{Binding AwayScore, Converter={...

DataContext name of WPFToolkit DataGrid shows in columns header background

Hi, I've got a strange problem with WPFToolkit DataGrid - after disabling AutoGenerateColumns, after adding only 1, narrow column, in the background of column headers appears full name of DataContext. It doesn't behave like a column - I can't neither resize or disable it. Previously I didn't know about this problem, because I had few w...

DataGrid in VS2008

There is not Datagrid in VS2008. Did it get killed and replaced? ...

How to create a dynamic flex datagrid

I'm trying to create a dynamic datagrid in Flex. The data is coming back fine and I can add the column headings. I need to do it this way as the column names are dynamic and coming from a mysql database. Can anyone help me get the values from re.result.resultSet.results[j].notes into the data fields? <mx:Script> <![CDATA[ ...

PagedCollectionView implement Extensions (SUM) after filter is applied

Hi, I have a PagedCollectionView over an observablecollection. When a series of filters are applied to the PagedCollectionView the datagrid binding to the PagedCollectionView displays the filtered data. However, I have a textblock where I display sum of a particular property within the observablecollection(or column in the datagrid). I d...

Silverlight datagrid cell edit event

I have a checkbox column bound to a dependency property. When editing the checked property is it possible to update the bound property immediately rather than waiting for the cell to lose focus? Thanks, Mark ...