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...
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
...
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
...
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...
Hi
I have a flex data grid.I need to highlight the selected cell of the data grid.can u please help me?
...
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...
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...
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="...." />
...
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...
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.
...
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();
}
]...
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...
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?
...
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...
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={...
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...
There is not Datagrid in VS2008.
Did it get killed and replaced?
...
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[
...
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...
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
...