datagrid

DataGrid - Edit the selected row when a button is clicked.

Hi all. I have a very simple DataGrid with 2 columns, some thing like this: <mx:DataGrid id="grid" > <mx:columns> <mx:DataGridColumn dataField="name" headerText="Name"/> <mx:DataGridColumn dataField="date" headerText="Date"/> </mx:columns> </mx:DataGrid> What Im trying to do is to activate the edition of the s...

WPF datagrid allow user to add rows?

I would like my WPF Datagrid that is bound to my observable collection to have the blank row at the bottom so that the user can add more info. I've successfully bound the data, i.e. I can see it. Why is the 'new' blank row not showing? Here is my xaml declaration: <UserControl.Resources> <CollectionViewSource x:Key="MyItems" Source="...

DataGrid (WinForm) - Error while Data Source is updated

Now, i am working in .NET FX 1.1 C# windows application. For doing data bound, i am using "DataGrid" control (due to missing of DataGridView in Fx 1.1). In this, we are binding "DataTable" object to DataGrid's DataSource. It is showing fine. Problem is, i am getting error messages, "while inserting additional data to a DataTable which ...

Access Datagrid row on TemplateColumn button click

Hi, I am implementing a file upload tool using Silverlight. In this I can browse for files and when I select a file then it is bound to a datagrid. In the datagrid I have a template column with a button to delete the particular item from the datagrid and ItemSource of the datagrid which is a List<>. I have a class UploadedFiles as belo...

Dynamically add rows with combox to datagrid (Windows appliction)

I would like to add rows with combobox dynamically to datagrid .The combo box on each row would be filled from different DatSource .Could any body help me on this ? ...

Silverlight 3 DataGrid - Rounded Corners

Is there an easy way to give rounded corners to the boundary of a DataGrid in Silverlight 3? Thanks a bunch! ...

How to get a ScrollViewer to be an exact height *and* show both scrollbars at all times?

I have a DataGrid inside a ScrollViewer. I want the whole thing to only be 200 pixels high. But this code: <ScrollViewer x:Name="DataGridArea" Height="200"> <toolkit:DataGrid ItemsSource="{Binding FieldChanges}"/> </ScrollViewer> produces this with the scrollbar only on the right side: and I can only see the scrollbar when I ...

Conditional image in datagrid

I have a datagrid in asp.net and vb.net, and i'd like to show the status of the item of a certain row with two possible icons. What would be the easiest way of doing so? I have a function that checks validation and returns a boolean value that uses some fields of the datagrid. (you can answer in c#) ...

WPF DataGrid cannot Add a row when datasource is empty

CanUserAddRows="True" only 'works' when there's already data in the itemsource of the data grid. If it just so happens that there are no rows in the original list of items, then the datagrid doesn't display a 'placeholder' row for entering new items, even though I've set CanUserAddRows="True". Why?! Thanks in advance, Trindaz ...

In Silverlight 3 can every cell of the datagrid be editable concurrently?

In an SL3 datagrid, is it possible to have every cell of the grid editable? I need to create a UI that's similar to an Excel worksheet. Upon a button click, the entire collection of objects would be submitted as opposed a single object or cell. Is this even possible, and if so how would I go about achieving it? Thanks. ...

Flex DataGrid / ArrayCollection sorting

I am attempting to create a resortable data grid in FLex 3. I have the grid set up and have accomplished the drag and drop functions as necessary but i need to get the row index of an item based on the data in the rows. The datagrid is being used as a playlist and the current index (before sort) needs to be updated with the index of i...

Select all checkbox in dojo 1.4 grid

Hi guys while migrating from dojo 1.02 to 1.4 i have encountered a problem with grid. In 1.02 versions i have implemented my own check box class inherriting from dojox.grid._CheckBoxSelector dojo.provide("MyCheckBox"); dojo.declare("MyCheckBox", dojox.grid._CheckBoxSelector, { format: function(inDatum, inRowIndex) { return '<...

Adobe Flash CS3: DataGrid component is broken?

My datagrid component appears to be broken. When I drag one out onto the stage, its just a square. Nothing in it. Just a square... Then, when I tried to programmatically add it to the stage, using an example straight off the docs, it throws some errors: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/DataGrid.htm...

How to access silverlight3 DataGrid cell control

how to access silverlight3 DataGrid cell value programatically? I know that I can use DataContext to access the data, but I need to access control contained in a specific cell. If column template is like this: <data:DataGridTemplateColumn Header="Header text"> <data:DataGridTemplateColumn.Ce...

dojo DataGrid event.cellNode.cellIndex is not returning correct value

Hi , I hava created a editable subGrid ( Grid in grid ) using Dojo DataGrid. I am fetching and populating the data in 2nd and 3rd cells from server based on value in the 1st cell. event.cellNode.cellIndex giving me correct value in firefox. but in IE it is giving some junk number. Please help me to fix this issue. Thanks, Shailaja...

WPF Datagrid using MVVM.. is two way binding to DataTable possible?

I have a datagrid in my View with it's ItemSource bound to a DataTable in my ViewModel. When I update the DataTable programmatically (adding a column through a command) the changes are not populated to the View. Also, if I invalidate the View, by switching to another tab and then switching back, the changes made are shown. My ViewModel ...

Datagrid selected row at a certain column as3

I need to get the value of a certain column in the selected row via AS3, how can I do this? It keeps returning null when I try grid.SelectedItem.text... Thanks for the help! I need to be able to reference the column by name, in this case "ID". EDIT: Does this require an event or something? Shouldn't there be a method for this built i...

DataGrid edits label instead of data

I have an editable DataGrid in Flex, with data full of numbers. The columns have no special itemRenderer, but a labelFunction, which returns the number as-is if positive, but puts it in parentheses if it is negative, like so 27.3 => "27.3" -27.3 => "(27.3)" Now, these cells are editable. When I try to edit a cell with a positive numbe...

Tree inside advanced data grid

Hi,I have a doubt about the expand collapse functionality in Advanced DataGrid. Let us assume we have following fields of data A, B, C, D and E.I want to group them by A and B. If i group on columns A and B then i get an ADG with 4 columns. A and B would get displayed in column 1 and C, D and E would be in columns 2, 3 and 4. I have to...

Saving a batch of changes from a DataGrid or GridView

I have a set of data that has been displayed as just a simple GridView with the item name being a hyperlink to view details. I'm attempting to update this scenario so certain fields (sortOrder and isApproved) are editable from the main page and do not require visiting each item in the grid. I have converted the GridView to a DataGrid a...