datagrid

WPF DataGrid row validation error count

Hi! I'm currently facing the problem, that I import an Excel file to a DataGrid. This works pretty fine, but after importing the table, I need to know how many rows are invalid. I have applied several validation rules for the different datatypes, and I have an icon in the row header, that shows up if the row is invalid. But since I ha...

Xceed DataGrid SelectedItem issue

In my project I have an Xceed data grid which is bound to a data source with many records and record details. I am attempting to create a context menu option that will allow the user to search for a specific detail in a specific column. While I have successfully completed the functionality there is a UI part that is giving me some troubl...

How can I calculate a group wise total in a silverlight datagrid?

I want group wise sub Total and at the end grand total please provide some sample code for the same For Example Group ItemID Price qty total 1 1 5 2 10 2 3 3 9 ------ 19 2 2 3 3 9 ...

Binding WPF DataGrid to DataTable using TemplateColumns

I have tried everything and got nowhere so I'm hoping someone can give me the aha moment. I simply cannot get the binding to pull the data in the datagrid successfully. I have a DataTable that contains multiple columns with of MyDataType} public class MyData { string nameData {get;set;} boolean showData {get;set;} } MyDataTyp...

Resizing Cell Height of Silverlight datagrid row?

Hi I was able to figure out how to expand and contract a column of datagrid using mouse. But after contracting and expanding a column, the height of cell doesn’t decrease. How can I bring the original height of cell (or row)? Can you look into this? Thanks AJ ...

WPF DataGrid: Resource per row?

Is there a way to xamly set a StaticResource per row in a DataGrid accessing it from all the columns? UPDATE My aim is to have 3 ComboBox columns, while only the last one is actually bound to the rows item. For instance, the DataGrid represents a list of Items. I have Category->Vendor->Style->Finish ComboBoxes, but those are only for ...

Looking for a free ajax datagrid for asp.net

Hi i'm looking for a free ajax datagrid for asp.net Any tips? thanks ...

How to drag a datagrid header to an itemscontrol in Silverlight ?

How do you drag a data grid column header content to a stack panel in silverlight 4? It seems you can only drag it to reorder the column but not to copy it to another items control... ...

WPF DataGrid gets wrong height when used with RowDetails

I have a problem with the new DataGrid component that comes with .NET4. The problem occurs when using RowDetails. With RowDetails the total height of the grid is increased when an element is chosen. This is necessary to show all Rows and the RowDetails, and exactly what I expect. When choosing another row the first RowDetails will collap...

RadioButton checkedchanged event firing multiple times

Hi, I am trying to add multiple radiobutton columns to my gridview dynamically in the code and i want to implement some logic which involves database fetch in the checkedchanged event of radiobuttons but some how the checked changed event is being fired multiple times for each row. Following is the code: aspx: BorderWidth="1p...

Basic help with DataGrid

Hello, I want to get data from mysql db, slightly change it and display in datagrid. Mysql data is like this: Id | data | privateData I am getting it using AMFPHP. I dont want privateData to show in datagrid (but i still want to use it in program). I want to add button to every row of datagrid (clicking it should call function with param...

How do I handle dojo datagrid cell updates so I can post them back automatically to the server?

I am using dojo datagrid to display my data. When the end user edit the cell values it should be updated in the server using ajax calls(when the focus goes out of the cell). Else, I should have a Edit & update/cancel buttons for each row to handle the same feature. But I don know how to place edit & update buttons inside the grid and ...

Show a progressbar on datagrid data update

It might sound like a trivial question but how can I show progress bars, when datagrids and other components that "talk" to web services, update their data providers ...

WPF: Master - detail view with two datagrids and in MVVM

Hi, I'm trying to write a master - detail control that consists of a master datagrid and the detail datagrid. My scenario was following - I used the SelectedItem and bound it to a property in ModelView. The problem is - the SelectedItem in ViewModel is never used, so I can't get the information which item is selected in a master datagrid...

[WPF Datagrid] Binding to a List<>

I have a datagrid like this: <dg:DataGrid Name="dg" AutoGenerateColumns="False" CanUserDeleteRows="True"> <dg:DataGrid.Columns> <dg:DataGridTextColumn Header="Product Code" x:Name="columnProductCode" Binding="{Binding Path=Product.ProductCode}" IsReadOnly="True" ></dg:DataGridTextColumn> ...

Filter Datagrid onLoad

My data grid successfully filters when I select a month from a dropdown list, however when I try to filter it onLoad it just doesn't filter. The dropdown successfully displays the current month, and the grid should also show the current month data. <script type="text/javascript"> dojo.require("dojox.grid.DataGrid"); doj...

Excel like FILTER feature in Silverlight datagrid?

Hi In Excel, there is this feature for filtering the cells of a column. How can I implement excel like FILTER feature in Silverlight Datagrid? Please advice. Thanks AJ ...

How do I select a single cell in a WPF datagrid?

When I click a cell in a WPF datagrid, the whole row is selected, and when I press Ctrl + C to copy the content, the whole row i copied... How do I select and copy the content of a single cell? ...

Flex Datagrid and nested array

I have a JSON decoded array of Projects which contain a nested array of Milestones. I'm trying to display the Milestones one at a time inside a Datagrid. However, it seem Datagrid can't handle more than 1 level of data. Following is a simple diagram of what I'm trying to do. [Project Name [0]] [Milestone[0]] [Project Name [1]] [Mile...

WPF Datagrid Get Selected Item

Hello, How do I get the selected item in a WPF datagrid? Tried the following, with no luck; dataGrid1.CurrentCell.Item.ToString(); string[] strsplit = dataGrid1.SelectedValue.ToString().Split('+'); dataGrid1.SelectedCells[0].Item.ToString(); dataGrid1.CurrentItem.ToString(); dataGrid1.CurrentCell.Item.ToString(); dataGrid1.CurrentCel...