datagrid

How to reset Flex Progress bar in the datagrid?

I've developed a simple file upload program with flex. After adding files, and clicking on upload, the progress bar works fine. However, when I click on remove all and start adding files again, the progress bar does not seem to reset. I have tried searching this forum for answers but failed to find any. Could anyone help me with this ple...

Summing values from datagrid

I am developing an e-commerce system as my project and have a datagrid acting as my shopping cart. it has two columns book and listPrice. the question is i want to sum the values in the listPrice column while the output is displayed in a label. Can someone please show me how to do this. Your help is much appreciated ...

How to dynamically change background colour of datagrid row?

Hi, It seems like there are various hacks out there to change the background colour of the row of a datagrid but all of them seem to happen at render time. See: http://stackoverflow.com/questions/748213/setting-background-color-for-datagrid-row-in-adobe-flex I have a datagrid where I need to change row colours to red then back to norm...

JavaScript data grid for millions of rows

I need to present millions of rows of data to users in a grid using JavaScript. I don't want the user thinking about viewing finite pieces of data (ie. pages); it should appear that all of the data are available. Rather than downloading all the data at once, small chunks are downloaded as the user comes to them (by scrolling, keying in ...

Customising Flex datagrid headerText

Gurus, I have a Adobe AIR application which has a datagrid. My requirement is to allow the user to make the column headers and the number of columns of that grid, customizable. 1. How can I get the column headerText values from DB? 2. If the user can enter the column names, it has to be saved to the DB and then loaded. Pl suggest. Re...

Flex detect whether scroll bar shows up in a datagrid

Hi everybody, I want to find out whether the scroll bar shows up in my Datagrid or not. How can I detect that? Thanks! Markus ...

Adding tool tips to dojo DataGrid items

I would like to add a tooltip with some extra data to each row in a dojox.grid.DataGrid. I have tried to create an onCellMouseOver handler, but I can't get the data item data out of the event object I'm getting. What is the best way to add a tooltip to a DataGrid row? ...

WPF Datagrid deselects row when control is disabled

I have a program in which a user selects a row in a Datagrid and then clicks a "Start Recording" button. While "recording" is happening, they are not allowed to change the value selected in the datagrid, so I set IsEnabled to false. However, when the datagrid is set to be disabled, it deselects the selected row, which screws up any bindi...

WPF: CollectionViewSource - uneven grouping

Hi! Im using the WPF-Toolkit DataGrid with an CollectionViewSource as Source. With PropertyGroupDescriptions I can create and display groups in the Grid. My problem is that i cannot create "uneven" groups, like: A A.A A.B B B.A B.B B.B.A B.B.B C D I want some groups that are deeper than other, and some, that are only elements ...

Silverlight Gridcolumn Collapse Visibility in code

Hi, I'm having a small problem. I have this grid with a column: <data:DataGrid ColumnHeaderStyle="{StaticResource headerStyle}" Foreground="#234BC3" AutoGenerateColumns="False" Name="protocollenBAMDataGrid" LoadingRow="myDataGrid_LoadingRow" SelectionChanged="DataGrid_SelectionChanged"> <data:DataGrid.Columns> ...

wpf - how can I create a dependency between expander inside datagrid and one of datagridrow properties

This is a general question. And may not be specific to datagrids. How can i related 2 properties or 2 different UI Elements/controls Like Each datagridRow has an Expander and i want the IsExpanded property to be dependent on datagridrow selected event . Thank you ...

Microsoft Silverlight DataGrid custom ToolTip

I have SL3 DataGrid and need a tooltip on rows and different columns which has data that needs to be fetched from DataBase when user hovers over the tooltip. I saw samples around that helps use the current binding context or the static content for the tooltip. But, how can I get a usercontrol shown in the tooltip whic...

DataGrid in Dojo , with json data from a servlet.

Hello , i am using JSON for first time... and want to fill my datagrid with my JSON data, this is my JSON data, { "head": { "vars": [ "s" , "fname" , "lname" ] } , "results": { "bindings": [ { "s": { "type": "uri" , "value": "http://tn.gov.in/Person/41" } , "fname": { "type": "literal" , "value": "Gay...

Silverlight - Access the Layout Grid's DataContext in a DataGrid CellTemplate's DataTemplate?

Hi, I am using Silverlight 3 to develop an application. In my app, I have a layout Grid (named "LayoutGrid") in which I have a DataGrid (named "PART_datagrid") with DataGridTemplateColumns. The LayoutGrid is set a DataContext in which there is a Ladders list as a property. This Ladders list is set as the ItemsSource for the PART_datagri...

Flex: linking dataProvider with custom itemRenderer in a DataGrid

Hi there, Im working at a DataGrid which has a custom itemRenderer with a checkbox and a Label inside. Im struggling adding the the values from a xml to the wright label dynamically... how can I make the connection from the datagrid's dataProvider (a xml doc) to the label and the checkbox? My itemRenderer loks a following: <mx:Componen...

Silverlight datagrid fails to display data.

I have a datagrid defined in my project's XAML: <data:DataGrid IsReadOnly="True" Grid.Row="1" Grid.Column="1" x:Name="gridOfferings" Margin="10,10,10,10" AutoGenerateColumns="False"> <data:DataGrid.Columns> <data:DataGridTextColumn Binding="{Binding Trader}" ...

Silverlight DataGrid Header Horizontal Alignment

I want to change the alignment of a header on a datagrid in Silverlight, and I can't seem to figure out how to do it. Here's what I have so far: <data:DataGridTextColumn Header="#" IsReadOnly="True" ElementStyle="{StaticResource CenterAlignStyle}" Bi...

Surely there is a better grid than DataGrid for the .NET Compact Framework...

Having spent a couple of days wrestling with DataGrid in .NET CF, especially controlling the look and feel, I'm looking for alternatives. I don't mind purchasing a solution. I'm looking for Redistributable to our enterprise customers. We control the hardware so it doesn't have to work perfectly on every device. Display strings and n...

How do I format the contents of a DataGrid cell as a Date? as Currency?

I have a Silverlight DataGrid that's being populated with different types of data for each column. I'm trying to figure out how to format some of the contents of the DataGrid's cells, specifically for dates and formatting. I have a date column that's currently displaying like: 3/11/2010 12:00:00 AM. I would rather it display like 3/...

Flex DataGridColumn with array of objects as data provider

I have a datagrid that uses an array of objects as the data provider. The objects are essentially key/value pairs: { foo:"something"} { bar:"hello"} { caca:"lorem"} The datagrid has 2 columns. The first column is the key and the second column is the value. Right now my grid looks like: ...