datagrid

Extracting relevant info. from Date / timestamp in adobe flex with row object

I have this code : var dp:Array = new Array(); for ( var i:int = 0; i < e.result.length; i++ ) { var row:Object = e.result[i]; dp.push( row ); } The row object consists data for different columns of a datagrid. dp.push(row) pushes the data onto the datagrid. Columns with index 3 and 4 have type of "DATE" with whole...

Customize the sorting in datagrid in flex

I have a column with 4 fields named : a> Main, b> Forward c> Back d> Link, if I use pre-defined sorting of datagrid with the column names which will be alphabetically, then the order is c>Back b>Forward d> Link a> Main. But, I do not want to sort based on the alphabets. I prefer to sort by names of the column fields. i.e. somehow give pr...

How to hide the Column header in a WPF DataGrid ?

I am using a DataGrid in Expression Blend but I just need to show only the registries and hide the ColumnHeader. How do I do that? ...

Selecting a Checkbox and deleting a data grid row in Flex

Hi, I am trying to implement the following : 1> First column of datagrid has a checkbox. 2> Select checkboxes, and then delete the datagrid column. 3> Dynamically, add checkbox when row is added dynamically. 4> Do not show check box if now data in row. Can someone give some guidance ? ...

Can I use it's own data source for rowheaders in WPF datagrid?

I mean - one source for all the data and another one - for rowheaders (of course, with different style). I know, that one can do the same thing for columnheaders, because each datagrid.column have it's own .header property, where I can put any control with it's own DataContext, for example. But what for rows? Of course, I can add one ext...

Remove cell editing style in read-only Silverlight DataGrids.

I'm using a DataGrid in Silverlight in ReadOnly mode. However, the DataGrid still allows selecting individual cells (changes background color and adds a thin blue border). I believe, the DataGrid is still turning the cell into a TextBox, but making it read-only. I don't want the user to be able to select a single-cell, only a row. Is...

Add new datagridRow, sort the datagrid and give serial numbers, in FLEX

Hi, I have a datagrid. I add a row to the datagrid using an ADD button. Once I add, I sort the datagrid based on a column. I also provide the serial numbers i.e. row numbers as first column to the datagrid. But, the serial number function does not apply after sorting. Hence, a new row added for e.g. row 5, based on sorting should be row...

Is there any WPF DataGrid that natively hands excel clipboard insert?

I mean, I have read features lists of all popular solutions. And they all have export to Excel and ctrl+c to Excel. But what about opposite process? In my case all the data comes from different sources, mostly in xls and user need to have an easy way for it's input. ...

2 numeric stepper components in an item renderer of flex

I have to put 2 numeric stepper components in one column of a datagrid. I suppose I need to write my own item renederer code for that. How to write a code for putting 2 numeric stepper components in one coulmn of datagrid. The 2 numeric steppers would work as time (Hour and Min) components. I cannot use readily availabel time components...

What's the insert performance like for the WPF Toolkit DataGrid?

Hi all. Just wondering if anyone knows about what performance is like for the WPF Toolkit DataGrid for inserting rows to the top of the visible area. I know that ListBox and ListView will recreate all new visuals for all of the rows that are pushed down, which is a major impact on performance; I was wondering if the WPF Toolkit DataGri...

How can I know when a Button in a Flex DataGrid itemRenderer is clicked?

I have a DataGrid component that displays a few columns of data. It has one additional column that displays a Button that allows the user to take an action with regard to the record. <mx:DataGrid dataProvider="{myData}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name" width="75" />...

Silverlight 3 BETA DataGrid grouping

NB this was for the silverlight 3 beta, RTM seems to handle grouping entirely differently. I've a grid that is working fine, which I'm using the GroupDescriptions property like so: <data:DataGrid.GroupDescriptions> <cm:PropertyGroupDescription PropertyName="ClientName" /> </data:DataGrid.GroupDescriptions> This works brilliantly...

Data grid in asp.net 2.0

How to give a combined header name for 2 columns in a datagrid in ASP.NET 2.0 with 2 column sub heading values. ...

refresh / reload a datagrid in flex

I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns. Ideally datagrid.invalidateList() method works to reload the datagrid with new dataProvider data. But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid. ...

Use a wrapper class around an object in flex / actionscript.

Main Goal : Select a school listed in the first datagrid, and display all the student records /details of that school in the next datagrid. But, since datagrid is editable and requirement mentions : "Use a Wrapper class around the object to get the data, set the same and save. Ensure wrapper is bindable to take into consideration the upd...

Providing values to components in a dataGrid

I have the follwoing. : mx:DataGridColumn width="125" headerText="Time" editable="false" mx:itemRenderer mx:Component mx:HBox mx:NumericStepper id ="TimeHour" stepSize="1" minimum="0" value="0" maximum="23"/ mx:NumericStepper id ="TimeMinute" stepSize="5" minimum="0" value="0" max...

What changed in the DataGrid that means it won't work anymore?

I have a Silverlight app with a DataGrid containing some custom columns and all was working well. Then I updated to Silverlight 3 tools for VS 2008 SP1 and rebuilt it. Now it has the following problems: Rows aren't added when the collection is modified. The ItemsSource property is (and always has been) set to an ObservableCollection in...

How do I refresh a DataGrid at timed intervals in F#?

I have a background thread updating an array. At timed intervals I call myDataGrid.Items.Refresh(). However nothing changes on the screen. But when I for instance click on the column heading of the data grid on the screen the information is actualized immediately. I like to see the changes on the screen at timed intervals, for instanc...

Flex CheckBox in Datagrid

In the followin flex Code : Also viewable at : http://www.cse.epicenterlabs.com/checkBoxDg/checkBoxDg.html 1. Add a row in datagrid by clicking on "AddRow" 2. Click on "CheckDg" to see the values of all the checkboxes - it shows "checkBox57" or "checkBox64" or some similar string 3. Now, "select" the checkBox in the first row. 4. ...

Trying to figure out how to allow a user to edit a collection with a DataGrid

I'm working on a plug-in for a 3D modeling program to assist in architectural design. I have a Building class which needs to contain a collection of Floors. My Floor class has properties such as Elevation, Height, ProgramType (residential, retail, etc), and ID. Each building has a FloorList property which is the collection of all the ...