datagrid

Pass data to Child Window in Silverlight 4 using MVVM

Hello, I have a datagrid with master detail implementation as follows: <data:DataGrid x:Name="dgData" Width="600" ItemsSource="{Binding Path=ItemCollection}" HorizontalScrollBarVisibility="Hidden" CanUserSortColumns="False" RowDetailsVisibilityChanged="dgData_RowDetailsVisibilityChanged"> <da...

flex checkbox value not selected from database

Hi, I have a small flex datagrid. The dataProvider is an xmlList. I have two columns, userList and user permissions. The user permissions column as checkboxes. The values for the checkbox are stored as 0 and 1 in mySQL. While returning it from PHP, I am converting them to true or false. Its returning the values correctly to the frontend....

FLEX datagrid and XML list content

I have the following XML list: <Queries> <Query id="1">qq</Query> <Query id="2">rr</Query> <Query id="3">ss</Query> </Queries> and I would like to display it in the following datagrid: <mx:DataGrid id="dataGrid" dataProvider="@{Queries.Query}" editable="true" width="500"> <mx:columns> <mx:DataGridColumn heade...

WPF DataGrid - Validation Recommendations

Hi All, We are implementing a WPF business application using MVVM. Currently we are trying to determine the best way to show validation errors for DataGrids. Currently we are trying to do so like this: 1) A View user control contains a datagrid bound to an EntityCollection of Entity Framework objects located in the associated ViewMod...

Working with Checkbox column in DataGrid in Winforms project

I have a checkbox column, and it is working just as intended. How do I "get" the selected rows ? I'd like to get the ones that are checked and run a method using another field of the same row. ...

Field of related table does not update in WPF DataGrid when Key changed

We have a DataSet with an order table and a currency table. The currency id of th order table is linked to the currency table with a relation (see code): Public Function GetOrders() As DataSet Dim dtsOrder As New DataSet Dim tblOrder As New DataTable Dim tblCurrency As New DataTable 'Define columns tblOrder.Columns....

Arbitrary Header content for each row in WPF datagrid

I'm trying to put row header text based on a converter function of the index of the row. I found a way to bind to the datagridrow like below, but i can't find how to get the row index of the datagridrow object. <DataTemplate x:Key="MyRowHeaderTemplate" DataType="DataRowView"> <TextBlock HorizontalAlignment="Center" VerticalAlignment...

Prevent tab into WPF DataGrid

I would like to prevent tabbing into a read-only Microsoft data grid in WPF. I set IsTabStop to False, but I can still tab into the data grid. Any ideas? <WpfToolkit:DataGrid IsReadOnly="True" IsTabStop="False" ItemsSource="{Binding Path=GridData, Mode=OneWay}" > </WpfToolkit:DataGrid> ...

WPF - Weird results with DataGrid - extra line for editing entries

Working with WPF and C#. I have a page with a datagrid that lists a series of objects with List as the DataContext. I recently had it working in the code behind and the Datagrid would show the extra line at the bottom of the datagrid for new entries. Now, I have moved the exact same code to its own library project. The data still appears...

Need SQL Server Stored Procedure for This Query

I have a ASPX.NET DataGrid and im trying to USE a select LIKE 'X'% from a table that has 1 field called location. im trying to display the locations that start with a certain letter (example wxxx,axxx,fxxx,) in different columns in my data grid. I am trying to display more than 1 column in my datagrid using a SP shown below. The issue i...

WPF DataGrid Column Resizing

Hi, I have two wpf datagrids having same number columns. I want to resize the same column in second grid when user resize the columns of first grid. Thanks, ant. ...

Datagrid in JSP

Hi, I need to create a Datagrid with a radiobutton column in JSP. The grid is to be binded dynamically to a result set and be populated accordingly. This result set is obtained as a result of search in the database. Please do help with a sample source code, or a useful link for the same. Thanks in advance, Geetha ...

Which datagrid to use for ASP.NET MVC2 project?

Hi, I am developing a commercial MVC2 app that requires a grid that has callback update in some form to support 10,000+ rows. It should also support relatively rich content (icons, multiline descriptions etc). Although it requires the usual paging/scrolling/sorting features it does not need support for grouping. So nothing that special. ...

Transpose of a data grid

Hello All, I have a data grid component in my mxml that has 10 columns and it returns 1 row of data each time an item is selected from the list. col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 20 22.5 0 10 12 15 0 0 12 25 i want to display the same data as 10 rows and 2 columns (field, column) . ex: co...

WPF DataGrid Columns not auto sizing when not visible

I have a datagrid inside an expander that are initially closed. When the expander is opened, the columns are all at the minimum width. Is there a way to force a recalculation of the widths? Thanks! ...

How to Bind Two Lists to Two Columns of Wpf DataGrid?

I want to bind two lists to two columns of a Wpf DataGrid. How is this done in Xaml? Class MainWindow Public Property Column1 As List(Of Integer) = New List(Of Integer) From {1, 2, 3} Public Property Column2 As List(Of Integer) = New List(Of Integer) From {4, 5, 6} End Class ...

WPF DataGrid and Avalon TimePicker binding problem

I'm using a the WPF DataGrid from the wpf toolkit and a TimePicker from AvalonControlsLibrary to insert a collection of TimeSpans. My problem is that bindings are not working inside the DataGrid, and I have no clue of why this isn't working. Here is my setup: I have the following XAML: <Window x:Class="TestMainWindow" xmlns="http://sc...

wpf data grid bug/error

Hi All, I m facing a problem with WPF DataGrid. I m using WPF DataGrid & DataGridTemplateColumn (textboxes) sometimes i get following error... whilst inserting data... i get error off and on... there is no pattern to reproduce error. it happens randomly System.NullReferenceException : Object Reference not set to an instane of an obj...

Adding a Combobox to a DataGrid in Silverlight

I can add a Combobox to a DataGrid using following xmal: <local:DataGridTemplateColumn Header="SomeHeader" Width="106" HeaderStyle="{StaticResource headerAlignRightStyle}" CellStyle="{StaticResource cellAlignRightStyle}"> <local:DataGridTemplateColumn.CellTemplate> <DataTemplate> ...

How do I bind selectedItem property of WPFToolkit-Datagrid to my viewmodel property ?

Hi, I have a WPFToolkit-datagrid and a View-model class with a property - "SelectedGridItems" How do I bind selectedItem property of WPFToolkit-Datagrid to my viewmodel property ("SelectedGridItems") ? ...