Browse by Tags
All Tags » LINQ (RSS)
-
Hello guys,
How can I bind the grid from a linq query that return a List<T>?Using an anonymous type, the datagrid shows the data correctly, but it´s a pain to get a the values from a selected item.
Here is my XAML code:
...
-
I have a linq to sql dbml file with a tblEquipment table and a tblEquipmentLog table with a one-to-many relationship. I want to drill down to see the equipmentlog for each piece of equipment.
As in the linq to sql example i query the databse like this:
public rglEquipmentDataContext db = new ...
-
You can take a look at the LINQ to SQL example in the Providing Data topic for an example of how to use the grid with LINQ and how to change the content displayed by the grid by changing the query when a new value is selected in the combobox.
-
The ''Binding to a LINQ query (XML) example in the documentation should help you get started:
<Grid xmlns:xcdg=''http://schemas.xceed.com/wpf/xaml/datagrid''> <Grid.Resources>
<xcdg:DataGridCollectionViewSource ...
-
<Grid xmlns:xcdg=''http://schemas.xceed.com/wpf/xaml/datagrid''><Grid.Resources>
<xcdg:DataGridCollectionViewSource ...
-
Have you set the AutoCreateColumns property to false? If so, cell editors need to be explicitly provided for each column in order to support insertion (see Column.CellEditor property).
-
IBindingList implements IEnumerable; therefore, as long as you are returning an IBindingList and its AllowNew property returns true you should have no issues inserting items in details.
Take a look at the Creating a Custom Detail Description example in the documentation. In the GetDetailsForParentItem, I return a new BindingList as such (using ...
-
Hi
I've got a Master Detail grid bound to a BindingList of objects returned from Linq. I've got almost everything working. I can add items to the Master level, I can edit items in the master level etc. This was not easy. I had to override a bunch of classes to get this to work the way I wanted it to work.
To get the details view, I've ...
|
|
|
|