datagrid

How can i make a reusable labelFunction for Flex Datagrid?

I have a label function like : private function formatDate (item:Object, column:DataGridColumn):String { var df:DateFormatter = new DateFormatter(); df.formatString = "MM/DD/YY"; if (column.dataField == "startDate") { return df.format(item.startDate); } return "ERR"; } Which I use in a datacolumn by using la...

SilverLight DataGrid: Copy & paste

Hi everyone, Is there a way that I can select a bunch of rows or cells from a SilverLight DataGrid and Copy them for pasting into e.g. excel? The DataGrid doesn't seem to have this functionality built in! Thanks a lot ...

SilverLight DataGrid: Export to excel or csv

Hi everyone, Is there a way I can export my Silverlight DataGrid data to excel or csv? I searched the web but can't find any examples! Thanks a lot ...

ITemplate and DataGrid Column in Codebehind

I have a situation where I need to work with a datagrid and adding columns dynamically in PageInit as the grid has a few conditional requests that it must handle. I'm moving along easily with BoundColumns, and ButtonColumns, those are easy. The problem is with the creation of a TemplateColumn via code. I have found examples out there ...

How do I bind a WPF DataGrid to a variable number of columns?

My WPF application generates sets of data which may have a different number of columns each time. Included in the output is a description of each column that will be used to apply formatting. A simplified version of the output might be something like: class Data { IList<ColumnDescription> ColumnDescriptions { get; set; } strin...

Silverlight DataGrid Exception Reordering Column Headers

I'm trying to set the initial display order of the column headers in a silverlight datagrid by changing the column header DisplayIndex values. If I try to set the column order at page load time, I get an out of range exception. If I set the column order (same routine) at a later time like, in a button click handler, it works. Is this jus...

DataBound DropDownList in DataGrid - order of binding

I have a DataGrid that looks like this (slightly simplified here): <asp:DataGrid ID="grdQuotas" runat="server" AutoGenerateColumns="False"> <HeaderStyle CssClass="quotas-header" /> <Columns> <asp:TemplateColumn> <HeaderTemplate> Max order level</HeaderTemplate> <ItemTemplate> ...

How to choose a databindable grid control

I recently started working with ASP.NET 3.5, having previously worked with C# and WinForms (mostly .NET 1.1) for about 6 years. My head spins every time I need allow the user to view, add/remove or edit a list of items. This is due to the similarities, and differences, of the following controls DataGrid GridView ListView DataList Ca...

A Question About Datagrid And Sql Query

I have 3 tables in database shown below. And I want to make a report just like shown link below. How can I do it with datagrid or datalist? Which one is the best chois? I have tried to do it for a week. http://img123.imageshack.us/my.php?image=61519307xx5.jpg COMPANY: ID_COMPANY, COMPANY_NAME PRODUCT: ID_PRODUCT, PRODUCT_NAME ...

Sorting a datagrid columns, I have the code and it sort of works.

Hi all, I'm trying to sort the columns of a datagrid A to Z, the code below works apart from I get a column beginning with 'c' in between the 'A' (e.g. a,a,a,a,c,a,a,b,b,b), this happens the first time I run the code. If I then use columnNames.Reverse(); (Z to A) and then re-run columnNames.Sort() (A to Z) it sorts correctly. Why would ...

Flex - how do I sort a datagrid column that is using an item renderer in the header?

I am using an advanced data grid that is using a custom item renderer for the column heading and now sorting doesn't work. If I take out the custom renderer it works fine but I need it to work with the renderer. Does anyone know how to do this? I am new to Flex and ActionScript. ...

Anyone used the Silverlight datagrid?

Hi there folks We're thinking of building a major project around the Silverlight datagrid. If any has any stories, comments or opinions on their persona experience of developing with the Silverlight datagrid, then I'd love to hear them. ...

How do I change the State in an itemRenderer based on an action in another itemRenderer?

I have a DataGridColumn with an ItemRenderer that extends the Box component. The default display is a Text component. When the user clicks on the text component, I change the State to add a PopUpMenuButton child, and make the Text component invisible. This works fine. However, I only want to allow one PopUpMenuButton to be visible in the...

RadioButton in 1st row of DataGrid causing problems - Adobe Flex

I have a DataGrid with RadioButtons in one column using itemRenderer. The DataGrid resides on a TitleWindow which is created and popped-up everytime the user clicks a button. The dataProvider for the DataGrid is an ArrayCollection, and the RadioButtons are selected or not based on a boolean value in each ArrayCollection item when the win...

Flex: Using NumericStepper as an itemEditor in a DataGrid

I am trying to make one field in a datagrid editable with a numeric stepper. My current attempts look like they are working, but the dataProvider is not actually being changed. Based on what I have read in a billion different places, the syntax should be < mx:DataGridColumn dataField="a" itemRenderer="mx.controls.NumericStepper" rend...

Silverlight Datagrid: Changing cell styles, based on values

I have some data. I want to go through that data and change cells (for example - Background color), if that data meets a certain condition. Somehow, I've not been able to figure it out how to do this seemingly easy thing in Silverlight. ...

Can't set Visible attribute in ASP.NET Panels

I am having trouble with visible attribute of an ASP.NET Panel control. I have a page that calls a database table and returns the results in a datagrid. Requirements If some of the returned values are null I need to hide the image that's next to it. I am using a Panel to determine whether to hide or show the image but am having trou...

how can I make a column unsortable when using the dojo toolkit's grid?

I've got a grid (dojox.grid v1.2) that I don't want to be sortable. How can I disable that? ...

Flex: Immediate editing in dataGrid cellEditor

When I am editing a cell in a dataGrid, the changes are not applied to the dataProvider until I finish editing. Is there a way that I can make the changes appear in the dataProvider whilst editing? I would assume that the way of doing this would be to subclass the editor I am using, in this case NumericStepper, but I don't know how I w...

What is the best method for paging with datagrid performance?

On a site with a high number of users, should paging be handled in code, or with a stored procedure. If you have employed caching, please include your success factors. ...