datagrid

Binding in a WPF data grid text column

I'm trying to build a data grid where one of the columns is a font name displayed in that font. Previously, I was working with a list box where I had defined the following template: <TextBlock Text="{Binding Path=Name}" FontFamily="{Binding Path=Name}"/> This worked just fine. So, I tweaked the data structure (Name became Font.Name) a...

Why can't I bind the WPFToolkit DataGrid ItemSource to DataTable?

In a Telerik control I was able to bind a DataTable directly to the ItemSource, but when I switched to the Codeplex WPFToolkit Datagrid <dg:DataGrid Name="theGrid"/> --- theGrid.ItemsSource = dt; I get this error: Cannot implicitly convert type 'System.Data.DataTable' to 'System.Collections.IEnumerable'. How can I bind the DataTabl...

How do I format headers on a WPF Datagrid?

I am using the WPF Datagrid from Codeplex. I am able to style the rows and with the following attributes in the dg:DataGrid element. But how do I style the Headers? I find 100s of examples on the web which define Styles and use e.g. x:Key="DataGridColumnHeaderStyle" in the Datagrid element, but none of them seem to work for me. How ca...

How do I include a custom row at the end of a DataGrid in Silverlight?

I have a DataGrid in my Silverlight application and it works nicely, adding a row or removing a row as I manipulate the ItemsSource collection. However, I want there to be an additional row, or control that always appears after the last data row. I can get the additional control to appear after the last row using a ControlTemplate and s...

Flex : Displaying the Advanced DataGrid data in Pages

I have a flex application where Im displaying login data using an advanced datagrid. Is it possible to show the data in this advanced datagrid, by a page wise way? if so do you have any sample coding to do this. thanks ...

How to get a ListView (or DataGrid) work with TextWrapping (WPF)

I mean, i have one of this controls and text inside one of it's columns. Usually if user changes column size, it's just cutting text. If I'm trying to use template with textblock or textbox and set TextWrapping="Wrap" inside of the template - it's really doesn't change anything. What's the way out? *And yes, I searched before asking, an...

C# Issue: How do I save changes made in a DataGridView back to the DataTable used?

I get a DataTable from a DataSet and then bind that DataTable to a DataGridView. Once the user edits the information on the DataGridView how do I take those changes and put them back into a DataTable that was used that I can then put back into my DataSet? I want to make a Save Button on my DataGrid that when pressed actually saves the c...

How to get the HTML output from a DataGrid?

Hi, I was wondering if there was a way to some how get the HTML output of a DataGrid. I want the raw HTML after the data has been bound to the grid. Is there some sort of overload for the render method I can use to accomplish this? Thanks. ...

WPF DataGrid ContextMenu(s)

Hi, how can I define different ContextMenus for each column in the DataGrid (Microsoft's grid)? I found out that the grid provides a ContextMenu attribute, but i want different context menu items for the columns, not the same ContextMenu for the whole grid.. Thanks for any help on this! Edit: Thanks for your answer! I tried to listen...

Is it possible to display a message in an empty datagrid

I have a datagrid which is populated with CSV data when the user drag/drops a file onto it. Is it possible to display a message in the blank grid for example "Please drag a file here" or "This grid is currently empty". The grid currently displays as a dark grey box as I wait until the file is dragged to setup the columns etc. ...

ASP.Net - Help with datagrid/checkboxes/double submit

We have a simple datagrid. Each row has a checkbox. The checkbox is set to autopostback, and the code-behind has an event handler for the checkbox check-changed event. This all works as expected, nothing complicated. However, we want to disable the checkboxes as soon as one is checked to prevent a double submit i.e. check box checked...

ASP.NET 2.0 Nested Datagrid?

I have a page designed with many HTML Tables which are hidden or displayed based on what needs to be shown at the time. There are various ASP.NET standard web controls within these tables, usually check boxes, radio button lists, text entry boxes, labels, etc. and all work just fine. I am trying to put a DataGrid within one of the rows...

What would you recommend for a large-scale Java data grid technology: Terracotta, GigaSpaces, Coherence, etc?

I've been reading up on so-called "data grid" solutions for the Java platform including Terracotta, GigaSpaces and Coherence. I was wondering if anyone has real-world experience working any of these tools and could share their experience. I'm also really curious to know what scale of deployment people have worked with: are we talking 2-4...

Properly bind a Windows Forms Datagrid to an array

I'm trying to use a windows forms datagrid (.NET 1.1) to update the elements of a two dimensional array. Using the microsoft documentation, I've been able to get the datagrid to display the array properly. EDIT: The MS instructions I followed are at http://support.microsoft.com/kb/315786. class myrow { private int a, b; public in...

Are Silverlight DataGrid Checkbox events?

Hello, Is it possible to have a bound DataGridCheckBoxColumn call a method of click? Or event a row level or row enter event? I'm trying to implement a datagrid that updates the underlying filtered ObservableCollection collection (great sameple here http://petermcg.wordpress.com/2009/01/29/filtering-silverlight-datagrid-rows/) The fi...

How to control which validators are used in a DataGrid

I'm developing a web page in Asp.Net 1.1 and have a DataGrid which allows users to add, edit, and delete database records. The footer row contains textboxes to allow the adding of new records. For each column I've defined <ItemTemplate>, <EditItemTemplate> and <FooterItemTemplate> elements. The FooterItemTemplate and EditItemTemplate e...

ASP.NET 2.0 - DataGrid with tbody / thead

Is there a way to get the DataGrid control to render the tbody and thead HTML elements? ...

Assigning Datasource to a region

Hi, I was wondering if there is an existing control that I could use to achieve what I am trying. Basically, I have a html table that I display my header information. It looks something like this: <table class="tableEdit"> <tr> <th>Job ID</th><td>10</td> <th>Client</th><td>Tom</td> </tr> <tr> <th>C...

flex datagrid problem

i have a data grid in my application and am pulling data from a MYSQL DB using php. is there a way to store all that data into an array and pass it to a function or is it possible to just store the data directly into an array instead of pulling it from the datagrid here is the code <mx:DataGrid id="dgUserRequest" x="150" y="10" dataProv...

Flex:How to retrieve the pre edited value of the cell of a datagrid to an itemeditor in a flex

I wrote a custom item editor for a datagrid in flex. My question is how to retrieve the pre-edited value of the datagrid cell after the item editor initializes and also in the custom item editors code. ...