datagrid

WPF Toolkit DataGrid - Finding only visible/currently viewable rows

I'm using the WPF Toolkit's DataGrid to display a set of search results. As per then scenario in my other question I want to be able to pre-fetch secondary results for each of my viewable (that is, within the visible scroll area) rows in the datagrid. I want to be able to: Query "viewable" rows Raise an event when rows become visible ...

Bind WPF DataGrid column to another

I want to enable / disable a DataGridTextColumn based on whether or not the SelectedValue of its neighboring DataGridComboBoxColumn == 'Other' I can make this work in a ListBox as below, but this won't work in my DataGrid environment as the DataGridComboBox column doesn't have a name property. <ListBox Grid.Row="1" Grid.Column="1" Item...

Spring datagrid with checkboxes

I have a web-application in spring where tasks should be assigned to workers (say programmers). the application should be able to list tasks (unassigned tasks) in a grid On another side, the application should list workers (say programmers) the manager should be able to choose select tasks (or checking), and choose workers to whom he...

How to add filter and paging to WpfToolkit datagrid

I want to add filter to columns in WPFToolkit datagrid. Is it possible to make it work like the ones in commercial grids (like in DevExpress's or Telerik's..)? Also a small second question about paging in datagrid..Do i need the one in the grid (i just want fast grid, so i thought about paging. Or maybe data virtualization there works ju...

Dojo DataGrid and Internet Explorer 7 Memory Leaks

Hi, I wonder if anyone has experienced memory leaks in IE7 when using dojos datagrids. I have used the dojo.addOnUnload to destroy the grid widget but it seems like there are still references to the grid and its subcomponents when i use the tool drip to analyze the memory leaks. <script type="text/javascript"> dojo.require("do...

'Databound' Calendar control embedded in Datagrid

I've got a datagrid that has a subset of data for each row, containing events with dates. I'd like to be able to databind a calendar control that shows these events. The calendar does not support databinding, but rather ondayrender event. My problem with this is that this event isn't fired until after all the datagrid's databinding, so ...

issue with wpf datagrid cell style when scrolling

Hi I created a new DataGridCell style for my wpf datagrid (Red Border brush). When I scroll down vertically the selected cells disappear which is ok. When I scroll up I see the selected cells but few of them missing their style and it appear in wrong cells. It look like the data grid remember the selected cells but "forget" their style...

How can I display image and text within one AS3 datagrid?

The following page shows how to load external images in AS3 DataGrid: http://www.adobe.com/devnet/flash/quickstart/datagrid_pt3/ (image and text are displayed in two columns) But I wonder how the image and text can be loaded together within the same DataGrid. Within one column: Image followed by the text. I cannot get it work so I'd be g...

compact framework merge datagrid cells

hi i couldn't find nothing useful for this problem can anybody help me out i'm using c# ...

How2 display Image from DB in datagrid?

Hope it's not yet been answered, but I've googled for quite a long time, and I've not been able to get it working. In brief, I've a SL4 page with a DataGrid filled accordingly to parameters passed from the previous page, so I fill the context in code, with a "RIA" query (w/parameters as well). So far, so good. I get the XAML declared col...

WPF - How do I style a row based on a binding property value?

Hey! So I am trying to bind a collection of objects (IList<>) to a WPF datagrid. I would like to make the row background a different color if the 'artist' property is null or empty. I am checking the value stored at the property on the LoadingRow datagrid event. Currently my implementation seems to style all of the rows with an empty or...

Calculate the sum of a datagrid's rows

I have this datagrid which has columns with a NumericStepper as an itemEditor where the user can change the number of items he wants to buy. How can I calculate the sum of all cells when the user updates datagrid's values? EDIT 1 My datagrid is about colors and sizes of a product. The columns are generated dynamically from this functio...

How can I bind dynamic data to DataGridTemplateColumn when using template selectors (in code)?

I'm using DataGrid from CodePlex. [Summary: How to use bind dynamic data (a property of an object specified by dynamic name) when using template selectors? Alternative solutions would be accepted as well. I've been thinking about making my own based on BoundColumn, but someone was having problems with that approach.] I have objects (IC...

WPF Datagrid Combobox binding to each other within the datagrid

How to get a WPF datagrid combobox to bind within the datagrid elements. For example: I have a collection of People => Name, Age and Sex. Foo, 18, Male Boo, 21, Male FooBoo, 30, Female Now inside the datagrid i have a combobox (DataGridComboBoxColumn) with the collection of the names only (Foo, Boo, FooBoo) ItemsSoure and two Data...

Display a running number in the WPF DataGrid RowHeader

Hello, I am using WPF with MVVM. How can I bind: a list of numbers or a list of clr objects with property number or a list of strings in my ViewModel to the RowHeader of the WPF DataGrid ? ...

How do I programmatically insert rows into a Silverlight DataGrid without binding?

I am using a common Silverlight DataGrid to display results from a search. The "schema" of the search can vary from query to query. To accommodate this, I am trying to dynamically populate the DataGrid. I can set explicitly set the columns, but I am having trouble setting the ItemSource. All of the MSDN examples set the ItemSource ...

Events doesn't fire when using UpdatePanel

Hi, What I did is, I have made 2 user controls. One control is inside the other. NoW one control has a buttton and a data grid and datalist in it. When pressing button I am filling datagrid while datalist visiblity false. This is working fine. But now when I press some link button in datalist data, it should call item_command event but ...

C# BindingSource.AddingNew is never called?

Hello, BindingSource.AddingNew is never called when I leave the cell of my datagrid. The DataGrid has as datasource the BindingSource which again has a "List" of "Customer". What does the BindingSource need to create a new Customer object and add it to the underlying ICustomerList ? Of course a interface has no constructor... but m...

MVVM: Difference using EventToCommand vs. Attached Behaviour for Events

Hello, doing a doubleclick on a wpf selector like datagrid I can use a DoubleClickSelectedBehaviour like Sacha Barber has done in his cinch framework or I can use the EventToCommand class from the mvvm light toolkit framework. Both seem to pass the EventArgs and violate mvvm by putting View related stuff into the ViewModel what is...

WPF DataGrid HeaderTemplate Mysterious Padding

I am placing a single button with an image in the header of a column of a DataGrid. The cell template is also just a simple button with an image. <my:DataGridTemplateColumn> <my:DataGridTemplateColumn.HeaderTemplate> <DataTemplate> <Button ToolTip="Add New Template" Name="AddNewTemplate" Click="AddNewTemplate_Cli...