datagrid

Binding collection indexes to a WPF DataGrid at runtime

After trying to develop our own control to display a table of data we stumbled on the WPF toolkit DataGrid and thought we were saved. A couple hours later I'm scratching my head trying to figure out if it can do what we really want it to do. The DataGrid seems to be based on displaying various properties of a single object, where I thi...

ItemsControl that loads items one by one asynchronously.

Hey Guys, I am creating a custom DataGrid by deriving the traditional tookit based WPF DataGrid. I want a functionality in the grid to load items one by one asynchronously, wherein as soon as ItemsSource is changed i.e. a new collection is Set to the ItemsSource property or the bound collection is Changed dues to items that rae added, m...

Implement master detail in one datagrid in wpf

Hello, I have classes as following: public class Property { public string PropertyName { get; set; } public int SumSubPropertValue; private List<SubProperty> propertyList; public void CalculateSumSubPropertValue { // implementation} } public class SubProperty { public string SubPropertyName { get; set; } ...

Datagrid scrolling with fixed headers

How can you have a fixed header on a DataGrid or GridViw and allow the grid to scroll? I'd like to avoid a solution that uses another separate table for headers. ...

Adapting the width of a Flexs 3 DataGridColumn to the content of its ItemRenderer ?

I have the following scenario : A Flex 3 DataGrid is sitting here At runtime, a column is added to this grid The column has a custom ItemRenderer The ItemRenderer inherits from HBox, and adds a few items to the HBOx dynamically My problem is that the width of the column doesn't change. As a consequence, my column stays small, and an...

ComboBox Binding inside Dataform Silverlight

Hi, well I have my users table and my department table, so I have in XAML a Datagrid and a Dataform, in my dataform i have a combobox that is filled from the department table (all possible departments), I bind it to the Department attribute from my user, and it shows it. The problem is that when I click the edit button of the dataform th...

DataGridComboBoxColumn was not found

The System.Windows.Controls.Data.DataGrid is used in my Silverlight application, but on attempt to add 'DataGridComboBoxColumn' column to the grid the following error messages are obtained: Error 1 The tag 'DataGridComboBoxColumn' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls....

How do I use a DataGrid to display the contents of a MDB

I'm relatively new to .Net 4 and I am creating my FIRST WPF application using a MDB as a backend datasource. I designed my UI. I have a TextField (called Name), a Combobox (called Division) and a DataGrid (called dataGrid1). The only problem I'm having is figuring out how to link my DataGrid to display data from the DataSource. and loa...

variable rowheight in slickGrid

Hi, I would like to provide variable row height depending upon the content size. is it possible in Slickgrid? Can you point me towards any examples. Thanks, ...

flex override public function set data

Hi, I have a datagrid with itemRenderer in datagridcolumn as my custom component(c1). I am getting the dataprovider data in custom component by overriding the set data function, it is fine. But now my custom component(c1) is also having another custom component(c2). Now the doubt is - how to get the dataprovider data in c2 component? ...

flex datagrid re-assign dataprovider

Hi, I am working on a datagrid with custom itemRenderer & [Bindable]xmllist as dataprovider. Now the changes done in xmllist are not reflected on datagrid UI until unless I re-assign the dataprovider as the same xmllist. As the dataprovider is Bindable so re-assigning is not required. But it was not working so I re-assigned the xmlli...

Adobe Flex Prevent Double Click

I have an adobe flex datagrid with a simple custom label itemrenderer in one of the columns. Clicking on the itemrenderer fires off a cairngorm event, which results in a service call being made, and the data from the service call populates a TitleWindow. Even though I have set the doubleClickedEnabled property to false, its still possib...

retriving row of grid

I have data grid to which data is getting from database. After getting the data i have to show entire row information in an alert box. Can any one help me? Thanks in advance my function code is: private function fetch(event:Event):void { var selectedRow:Object = event.currentTarget.selectedItem; Alert.show(""+selectedRow.Detai...

Flex: Data Grid within Tree structure

Hi, Is it possible to have a data grid within a tree structure in flex? Reverse of what advanced datagrid provides{where you can have a tree structure within a data grid}. ...

DataGrid binding issues

Has it ever happened to you that a datagrid bound to another element's selecteditems collection, doesn't update the first time an item of the second element is chosen? After the first attempt everything works fine. It is necessary to mention that I've set the AutoGenerateColumns to false, and define the columns myself. ...

Save the sortorder from a datagrid

I whant to save the sortorder and the selectedIndex from my Silverlight datagrid. I use: Application.Current.Resources.Add("CurrentIndex", dg.SelectedIndex); to save the selectedIndex. If my list was sorted when i selected a item the index will not be correct when returning to the datagrid. How do I save the sortorder so the correc...

Select All button WPF DataGrid

Hi, I was wondering if there is anyway of disabling the select all options on the top corner of the WPF DataGrid....this only seems to occur when I add a UserControl to a fixeddocument in WPF. Thanks in advance, U. ...

WPF DataGrid content does not scroll

After searching for a fix to this issue in the previous answers I've decided to post my example. I have the following situation: my datagrid is placed inside a Grid row that is itself placed inside a UserControl.The UserControls does not have a fixed height, as I want the control to resize together with the window. The datagrid is bound ...

multiple row selection in datagrid

flex example to select multiple row selection in datagrid ...

Hiding rows in a WPF datagrid - resizing issue

I have an issue with hiding rows in a DataGrid. I do this by creating a new DataGridRow template which has a DataTrigger bound to a property on the objects in ItemsSource. The trigger sets the Visibility of the border of the row to Collapsed if the IsVisible property on the model object is false and vice-versa. If I set one row's IsVi...