datagrid

Silverlight Relating Two Datagrids

Hi, My question: How do I bind the SelectedItem from a primary datagrid to the ItemsSource for a secondary datagrid? In detail: I have two datagrids on my view. The first shows a collection of teams and the second shows as list of people in the selected team. When I select a team from the grid I can see that the SelectedTeam propert...

Persisting DataGrid column order with item render in flex datagrid

Hi all, I'm working on datagrid columns position remains same when page navigation in flex, it worked fine for me for plain data when it is working with item render it is getting problem , can anybody see my code and correct it . if I remove the item render from the below code it working fine, plz help me. public var sharedO...

Datagrid cannot sort on some fields - object, object subfield, base type

When using the Silverlight DataGrid with an IList derived data source it is possible to click a column to sort by it, assuming the CanUserSortColumns/CanUserSort properties are not false. However I'm finding some edge cases cannot be sorted by - the values are shown, but clicking the column has no effect. The first edge cases would see...

Dojo Datagrid Filtering Issue

I am having hard time filtering a datagrid. Please help! This is how I draw a grid. var jsonStore = new dojo.data.ItemFileWriteStore({data:columnValues}); gridInfo = { store: jsonStore, queryOptions: {ignoreCase: true}, structure: layout }; grid = new dojox.grid.DataGri...

Display options and stored in the data base values

hi I have a js function that allows me to format a column grid after a select from another column in the same grid (column type dojox.grix.cells.select "): function Columnformatter() { grid.getCell(4).formatEditing = function(inDatum, inRowIndex) { if (widget == "select") { codeHTML = "<select class=\"...

WPF Datagrid Hyperlink Right Click

Hi, I have a datagrid which has one hyperlink column with the following code: <dg:DataGrid Style="{StaticResource DataGridStyle}" x:Name="movieGrid" ItemsSource="{Binding ElementName=This, Path=movieData}"> <dg:DataGrid.ContextMenu> <ContextMenu Name="cm"> <MenuItem Header="Copy" Click="CopyC...

How to I manipulate cell data being displayed in WPF Toolkit DataGrid at runtime?

The following WPF code displays the contents of FirstName and ZipCode in the WPF Toolkit DataGrid. However, I don't want to just display the data as it is but slightly modified, e.g. I might want to display all the zipcodes to display with a "-0000" on the end, or I may want to display "n/a" if a cell is blank. I could only find Copyin...

Use Localization for DataGrid datafields

Hi there I have implemented my own ResourceManager for localizing my application by using <mx:Label text="{resourceManager.getString('myResources','Spot')}" /> instead of <mx:Label text="Spot" /> Now I want to be able to use this in dataFields in a data grid which use a xml file as datasource <mx:DataGrid width="100%" height="10...

flex 3 datagrid and xmllistcollection

im trying to display content of xmllistcollection in different fields in my datagrid however unless i use an itemrenderer the value is not displaying in the grid. the xmllistcollection is populated from a webservice call. Inside my item renderer i use a custom namesspace to retrieve contents from the xmllistcollection value.ns::firstNa...

Flex datagrid tab to checkbox column

Context: I have a data grid where the following has been implemented. tabbing through each column in a single row and creating a new row when tabbing from the last column. The last column in my datagrid is now a checkbox. I set the 'editable' to false as shown below (since we don't want editable text to be shown when user clicks on/tabs...

flex how can i use an image multiple times

i want to reuse an image multiple times within an item renderer, is it possible to embed the image and then reuse multiple times without having to go back to the server for the image? Is this the most performant solution? ...

Maintain scroll position on updating the ItemSource of a silverlight datagrid

I'm using a DataGrid in my silverlight application to display some data that's refreshed on a timer. My problem is that when this happens the vertical scrollbar in the grid resets to the top, whereas I want it to stay in the same position. Does anyone know how I can make this happen? I've tried overriding the ItemsSource property on th...

Flex datagrid - determining when grid has completed renderering?

hi, i have a datagrid which contains a number of itemrenderers, it is populated each time a user does a search. Is there an event which can tell me when the datagrid has completed rendering all new rows and item renderers? I need to trigger an event once everything has been created so that i can resize then container which holds the g...

Synchronizing HeaderRenderer height on two DataGrids

I have two separate datagrids, they both use the same class as the custom headerRenderer. I am having problems thinking of a way to sync the size of each headerRenderer. If grid1 has two rows worth of text (word wrapping is enabled) and grid2 has one rows worth of text. I want both grid1 and grid2 to both be the height of two rows worth ...

flex datagrid - is it possible call a sortCompareFunction on initialize

HI, I want to call the sortCompareFunction for a particular row when the grids first loads. Is this possible? Otherwise is there a way to call a sort method on grid load after it has been asssigned the dataprovdier has been updatad ...

Datagrids and Classic ASP

Hi there, to maintain compatibility with a classic ASP system, I essentially need to build the equivalent of an ASP.NET datagrid (complete with read, insert and update capability) in Classic ASP, are there any tools out there that make this any easier than just simply handcoding tables? I'm fairly rusty at Classic ASP as well so an easy...

How do I reject a change in an editable Xceed Wpf DataGrid cell?

I have an Xceed DataGridControl on a WPF Window with a few columns that are data bound to a DataTable. The UpdateSourceTrigger on the grid control is set to CellContentChanged so that the binding source updates as soon as a cell's content changes. <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/prese...

Flex: How is data passed from DataGridColumn.itemToLabel to DataGrid.itemRenderer.set(data) ?

Hi, I have a DataGrid whose dataProvider is an Array of int Arrays (each with different lengths). Since each row has variable size (and I want to display all the data), I decided to extend DataGridColumn and overwrite the itemToLabel function to be able to display the data. The problem is that I also need to display the data differently ...

Adding property fora particular Column in a particular row in Datagrid C#.net

Hi all, I have a requirement like , In the datagrid i can have several checkbox columns. I need to display a warning message for a particular check box , and for some row only. I did code for warning message for that particular check box by setting property for the columns.. Now i m not sure how to apply this for some rows alone. The...

How can I connect WPFToolkit DataGrid to a search-query source that is in code-behind

Hello, I am implementing a WPFToolkit datagrid and I want to bind it to it's source. Currently I do it programatically in code-behind through linking the query results to the ItemsSource . Still this is not effective enough, as I want to be able to select which columns to display and also to rename the headers, for which I need binding...