datagrid

Where can I find examples on creating a custum TreeGrid and datastore in Dojo 1.5?

Hello stackers, I would like to create a dojo grid with expandable/collapsible rows. Each page will have 25 collapsed rows, but each collapsed row can contain any number of items (for example, 100 items). TreeGrid looks like a good option, but the default layout of TreeGrid is not what I need - the current 1.5 implementations show a '...

data grid bound with dropdown list

How do I dynamically change the content of a data grid to select the correct data from database when the drop down list SelectedIndexChanged event happens? To be more specific, I have a dropdown list of apple, orange and pearl. When the dropdown list changes from apple to orange, I want the datagrid to query the database like this "sel...

WPF DataGridBoundColumn Bindable Properties

Hello, I have a custom class that inherits 'DataGridBoundColumn' that generates a custom control for me inside my gridview. Now I know I can assign static properties just fine, but my problem is when I try to assign binded properties. Below is an example of my background: This works: public property Background as Brush <Controls...

destroy open item editor or item renderer in flex

Is it possible to destroy/close open item editor or item renderer of a datagrid in different mxml page? I heard about the functions editedItemRenderer and destroyItemEditor on Datagrid. Can I use these functions in different mxml page? ...

VB .NET : DataGridView.DataMember throws error when assigned a two-part name. i.e. Sales.StoreContact

My problem is oulined here: http://support.microsoft.com/kb/314043 Microsoft says: "This behavior is by design." No workaround is provided. I need a workaround. So I have a dataset which is populated correctly with the contents of the table name Sales.StoreContact. When I try DataGridView1.DataMember="Sales.SalesContact" the IDE th...

DataGrid in a StackPanel leads to OutOfMemoryException

I have grid in a WPF window and a DataGrid control inside: <Grid> <DataGrid ItemsSource="{Binding AllAuthors}" /> </Grid> AllAuthors is an ObservableCollection<Author> and Author a simple class with only a few string properties. The collection is populated with around 40000 objects in code behind. The DataGrid opens quite quickly ...

Problem with filtering DataGrid

I have bound my DataGrid to a DataTable and only few of the details are displayed in the grid. When I wanted to filter the DataGrid I created a View with my DataGrid's ItemsSource. Code: Dim myView As ICollectionView = CollectionViewSource.GetDefaultView(MyDGrid.ItemsSource) myView.Filter = New Predicate(Of Object)(AddressOf filte...

Command Parameter is null in a Command of CustomDataGrid.

This code works fine : <sdk:DataGrid ItemsSource="{Binding MyItems}" SelectedItem="{Binding MySelectedItem,Mode=TwoWay}" x:Name="dataGrid"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <i:InvokeCommandAction Command="{Binding CommandName}" CommandParameter="{Binding ElementNa...

WPF: Setting the DataGrid VirtualizationMode from its column

I have a data grid column that requires the VirtualizationMode to be "Standard", not "Recycling". Therefore I would like to set this property in the DataGrid automatically. The problem is that in the constructor of my column the DataGridOwner is not yet set (and is null) and in GenerateElement override it is too late for changing Virtua...

WPF DataGrid Bind Editor Setting to another property

I have a field in a DataGrid, bound to a value (Item.Amount), now inside the style for that field editor, i would like to bind the Format field to Item.QuantityDecimalPoints. But I cannot seem to be able to go up the tree to the same Item that the record is bound to. I have tried the following: Format="{Binding Path=QuantityDecimalPoi...

Columns definition for DataGrid bound to DataTable with unknown columns?

I have a DataTable which is going to be bound to a DataGrid. I don't know what the columns will be in advance, however I do know the first column will be a boolean value that should be bound to a CheckBox. Is there an easy way to create a DataGrid that will generate the unknown columns, but not show the first column? The unknown column...

DataGrid Excessive Databinding Property Get Calls

We have a data grid on a window that is bound to a collection of objects. We are having very bad performance on this window; it can take up to 20 seconds to load, and then 5-7 seconds each time you 'scroll' the data grid. This is with a total of 12 items so far. When we investigated, it seemed that the primary cause of the slowdown w...

Asp.Net using C#, Open Web form when click on the Datagrid row

Using Datagrid I am trying Web Form on click datagrid row, Any body suggest how I do this. ...

How to use Dictionary to provide data (which are defined in runtime) to DataGrid (xaml) in SL4

Hi, I am looking for information on how to provide data to DataGrid using Dictionary. My use case is: I have WebService that provides me a table with the content (and column names) I get know in runtime. My current implementation of a data tuple is: public class GridTuple : Dictionary<string, string> { public GridTuple(IDic...

how to Set the position of Column in datagrid wpf

hello all i have a problem i m making a wpf application and using data grid Control to Show tabular data i m adding a Single Coloum in data Grid through Xaml And My All Other Column Would be add Dynamic my Fixed Column Comes At first postion in Grid i Want to be it to be come At last how can i achive it my Xaml code is As below Th...

Silverlight: Binding Dynamic Data to a DataGrid

Hello folks, I've run into a problem recently, hoping you all could help. I was tasked with creating an application that can take any DataSet, and display it in a series of grids (using something like a tab control). I was able to do this pretty easily in WPF: 1. Create a WCF Service that returns a DataSet object 2. Create a WPF Windo...

WPF DataGrid (In .NET 4.0 Not Toolkit), Header Sorting with ICollectionView

Firstly let me clarify (if the title wasn't clear enough): I'm discussing System.Windows.Controls.DataGrid from the .NET 4.0 Framework, not the toolkit edition. I'm currently building up a small re-usable set of classes/view models/etc in my project to build a rather powerfull DataGrid for my application. Now, by default given an IEnu...

Styling WPF toolkit datagrid

I hope to find an answer on customizing Datagrid from WPF toolkit 2010. I'd like to add a TITLE area to be above DataGridColumnHeaderPresenter of the datagrid. The problem is that I want it to be as a user control or data template where I can populate the title from XML. I want to have unique titles for multiple datagrids on one page get...

Create new typed DataSet object (c#)

I use a DataGrid to show a xml file. The Grid's DataSource is a Typed DataSet.(using schema) Assembly assembly = Assembly.GetExecutingAssembly(); Stream stream = assembly.GetManifestResourceStream("XML_Reader.Resources.schema.xsd"); XmlSchemaSet schemas = new XmlSchemaSet(); XmlReaderSettings settings = new XmlReaderSett...

How to turn rows into columns?

I have a database where I store keywords grouped into projects and data related to each keyword, then I display datagrids foreach project with one row per keyword and several columns all retrieved from the same table "data". I have 4 tables, keywords, projects, group_keywords and data. "keywords" only stores the keyword, "projects" the p...