datagrid

flex: cant edit item in Datagrid with override set data method

Hi everybody, I've a custom itemRenderer for my datagrid. To set the actual data I use the following method: override public function set data(side:Object):void{ ... } As soon as I use this function the cell doesn't show up any item Editor anymore. Why is that? When I remove this function the itemEditor is working but with the wro...

How do I properly apply a Silverlight theme in this environment?

I have the following XAML for generating a datagrid on a Silverlight page: <UserControl xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:bubbleCreme="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.BubbleCreme" xmlns:expressionDark="clr-name...

WPF Datagrid Cell with Validation Error Style

Hi, I am trying to change the default style of a DataGridCell (within a WPF Toolkit DataGrid) when there is a validation error. The default is a red border. How can I put my own template? Thanks. ...

Best 3rd Party WPF Datagrid

We need a datagrid for financial applications to replace existing winforms datagrids. We tested a number of WPF grids over a year ago, but at the time they weren't up to standards of their winforms counterparts. What we found is that whilst their demos showed they had most of the features we'd need, after say a couple of weeks usage w...

excel turning my numbers to floats

Hello, i have a bit of asp.net code that exports data in a datagrid into excel but i noticed that it messes up a particular field when exporting. eg .. i have the value of something like 89234010000725515875 in a column in the datagrid but when exported, it turns it into 89234+19. Is there any excel formatting that will bring back m...

QueryReadStore loads JSON into DataGrid, but JsonRestStore does not (from the same source)

I'm building a Dojo DataGrid from JSON data provided by my REST interface. The DataGrid loads the data fine using a QueryReadStore, but doesn't seem to work with the same same data piped into a JsonRestStore. I'm using the following Dojo libs with Dojo 1.4.1: dojo.require("dojox.data.JsonRestStore"); dojo.require("dojox.grid.DataGrid")...

How to define descending sort order (in XAML) for DataGrid in SL/WPF?

In order to define column sorting the SortMemberPath can be used. But how can I define that this column shall be sorted descending? ...

How to set the same column width in a datagrid in flex at runtime?

HI, In flex, I have a datagrid with 22 columns. I initially display all the columns. The width of each column right is uniform. Now when i change the visiblity of a few columns, the width of each column varies. How do i maintain a uniform column width for each column whether or not there are any invisible columns?... Also how do i get t...

WPF DataGrid.RowValidationRules : allow a row with errors to be commited

I'm using DataGrid.RowValidationRules to display error messages in Row Details when the row is not valid. <c:DataGrid.RowValidationRules> <c:RowDataInfoValidationRule ValidationStep="UpdatedValue" /> </c:DataGridx.RowValidationRules> The model implements IDataErrorInfo and I'm using this ValidationRule: public class RowDataInfoV...

Datagrid selects the wrong custom cell in my datagrid...

Hi everybody, I am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I work...

Silverlight DataGrid: Hiding columns using VisualStateManager

Is it possible to hide a column of a datagrid, without using codebehind? E.g. by using the VisualStateManager? <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" x:Cl...

follow up question problem with selecting a custom itemrenderer in a datagrid

Hi there, I have posted two problems with a custom itemRenderer see this post. My primary Problem is, that it always selects a wrong line (one under the one I select). I now realized that this happens, when I save back the content of the itemRenderer to the dataProvider. If I code this part out, the dataGrid works as expected... Does t...

format dojo DataGrid header row

I want to assign a background color to my programmatically created Dojo DataGrid's header row. I've tried to override the defaults by adding .dojoxGridHeader or .dojoxGrid-Header to my style sheet, but these have no effect. Is there another way, such as with a Dojo event or property? If my style sheet is the only way to go, am I using t...

How do I drag and drop between two datagrids in wpf?

For example, dragging a row from a datagrid table to another datagrid table? However the other datagrid table just present the row, it manipulates the data gathered and present it in its own way. I am using wpf toolkit... Can show me a sample example on this? Thanks. ...

silverlight datagrid row highlight dynamically

Hello, I have a datagrid populated with data and holding 8 columns. One of those column is "Verification Status". Now this "Verification Status" column contains Values "Yes" or "No". What I want to achieve is that when the grid is loading based on the values (Yes or No) I want to dynamically change the datagrid's row background color to...

Very Strange behavior in custom dataGrid

Hi everybody, I have a dataGrid with a custom itemRenderer. Everytime I tab at least two times on the dataGrid, the cell below the one I taped gets selected. This doesn't happen if I uncomment the code in the method saveBackDataGridContent()! The second problem is that if the Line is shorter than the entered text, a horizontalScrollBar...

struts datagrid problem - can't solve this problem

i am creating datagrid using the struts-layout. and i encountered this problem javax.servlet.ServletException: DispatchMapping[/monitor/datagridBL]でハンドラプロパティが定義されていません at org.apache.struts.actions.DispatchAction.getParameter(DispatchAction.java:325) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) ...

WPF DataGrid: How to reset column width when applying new ItemsSource

I am using a DataGrid to display details of an item selected in a ListBox. The DataGrid has 3 columns set to Width="Auto". As different items in the ListBox are selected, the width of the columns in the DataGrid increase as needed in order to display the text. What I want is that the column widths also decrease when the extra width is ...

Access Controls in Silverlight DataGrid Column Header from Code

We have custom headers in the Silverlight DataGrid using the ContentTemplate. We've got a button in the header and need to programmatically access the button to hook up the event. We're using IronPython, so we can't statically bind the event in the xaml (plus we use the grid for many different views - so we dynamically generate the xaml)...

WPF - DataGrid Column Header Alignment

Hi all, I'm using the WPFToolkit DataGrid control and I wanted to restyle some of the column headers so that the header text is displayed vertically instead of horizontally (the data in the column is all numeric and therefore, not very wide, but the header text is long). So I created a DataTemplate to and tried to get the DataGridColumn...