grid

How can limit the height of a grid row in wpf

I'm developing an Outlook Add-in in WPF. Outlook Add-in is an UserControl. My simplified XAML code look's : <UserControl> <Grid> <Grid.RowDefinitions> <RowDefinition Height="150"/> <RowDefinition Height="*"/> <RowDefinition Height="20"/> </Grid.RowDefinition...

Suggestion for Grid for MFC SDI application

Currently we are using Xtreme Toolkit Pro Grid control with virtualization support for our application to show the contents in Grid. Is there any other better software which can be easily used as Grid without much changes in the application. Also can I able to achieve the full use of Grid in CMFCPropertyGridCtrl which is present in MFC...

Configurable grid layout with Silverlight 3 and Prism

I’m developing a composite Silverlight application using Prism. Part of the application is a highly configurable dashboard. A configuration file is downloaded by application through web service and the dashboard is constructed at runtime from the configuration file. Along with references to data sources and views (in terms of Prism), a c...

Excel spreadsheet like library in Swing (=improved JTable)

Hello, I'm searching for a free, open-source if possible, Java swing library that improves the existent JTable (which is very simple). I want to do an application with a spreadsheet similar to Excel one. Without the formula but with copy/paste functionalities (multiple paste if multiple selection), column reorganizing, etc... I've fou...

Problem using * in Grid sizes

Hello When I set a column's width or a row's height to star, and I fill in content that is bigger than the available rectangle, the row keeps on growing 'underground': <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Win...

WPF Grid Show/Hide Column

I have the following layout in my grid <Grid> <Grid.RowDefinitions > <RowDefinition Height="50" /> <RowDefinition /> </Grid.RowDefinitions> <Button Click="Button_Click" Grid.Row="0" Width="50" Grid.Column="2" Content="Test" /> <Grid Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition Wid...

Grid scrolling for better user experience

We have an Intranet web page that displays reports based on some search criteria. The controls for the search criteria are at the top of the page and the report grid is the only content on the page. The grid will typically display more than 50-100 rows and will require scrolling. What page design is more appropriate from a UX perspective...

how to tack on an extra row at the end for the mvccontrib grid?

I am using the MVCContrib Grid to display a simple shopping cart. I would like to tack on an extra row at the end for the Total? Anyone have any idea of how to do this? ...

[WPF]How to set width and height of a grid that is in a data template

Having the following wpf code: <Window x:Class="WpfApplication5.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:WpfApplication5" Title="Window1" Height="300" Width="300"> <Window.Resources> <c:Places x:Key="PlacesData"/> <Dat...

jqgrid Display Grid as Subgrid by separate Button

Hi, I have a Problem to Display a Grid as a Subgrid using an extra button. I tried to copy the code from the subGridRowExpanded: Event. But the Grid is doing something nasty, before the subGridRowExpanded is fired. If I use the + button at the left side the grid is displayed properly. If I now push my created button, the subGrid is r...

Xaml alternative to grid layout

I've been using grids to hold my controls for a new app. Such as; <Grid Margin="5"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="150" /> <ColumnDefinit...

Binding ColumnDefinitions in Silverlight

I have two separate Silverlight usercontrols containing grids and i want these to share a set of columndefinitions. The columndefinitions must be created dynamically. How can i do this? ...

Word-wrap grid cells in Ext JS

(This is not a question per se, I'm documenting a solution I found using Ext JS 3.1.0. But, feel free to answer if you know of a better solution!) The Column config for an Ext JS Grid object does not have a native way to allow word-wrapped text, but there is a css property to override the inline CSS of the TD elements created by the gri...

Python: creating a grid

Is it possible to create a grid like below? I didn't found anything in the forum. #euler-project problem number 11 #In the 20 times 20 grid below, #four numbers along a diagonal line have been marked in red. #The product of these numbers is 26 times 63 times 78 times 14 = 1788696. #What is the greatest product of four adjacent numbers i...

WPF UI automation - Doesn't support rows? (or how can I select and deselect an entire row)

Note: This is no longer an issue, the .NET 4 built-in DataGrid solves this problem I have a WPF app which is using a DataGrid; I'm using the WPF ui automation API to write some automated tests for it. The DataGrid is the WPFToolkit one, I'm using the .NET 3.5SP1 with VS2008, and, the datagrid has multi-select enabled. Where I'm at is...

GWT - Populate Grid asynchronously

Hello, we've got a GWT application with a simple search mask displaying the results as a grid. Server side processing time is ok as well as network latency. Client rendering time is ok even on low spec hardware with internet explorer 6 as long as the number of results is not too high (max 100 rows in the grid). We have implemented ...

Calculate distance between two x/y coordinates?

i would like to calculate the distance between two x/y coordinates. This calculation itself isn't that difficult, however I need the corners and sides of the grid to be 'connected'. This means on a grid of 500x500 that the point after 499 becomes 0 again. The distance between e.g. 0,0 and 0,495 should be 5 then. Is there any good mathe...

Need suggestions for developing Scrabble like game in WPF

Hi I want to develop a game like Scrabble in WPF for which I need some suggestions For Visuals: 1. What controls can be utilized to represent a (let's say 9 x 9) matrix? I would need ability to associate each cell with an id to know its state at all times during execution. How can I inject different visual properties to a cell of matr...

Calculate overlap between two rectangles on x/y grid?

I need to calculate the overlap (amount or yes/no) that two rectangles make on a special x/y grid. The grid is 500x500 but the sides and corners connect (are continuous). So the next point after 499 becomes 0 again. In a previous question I asked for a way to calculate the distance between two points in this grid. This turned out to be ...

How to build an order processing form in ASP.NET MVC and jQuery/JavaScript

I need help with building page where information is entered on a form at the top of the page and then added to a grid below the form when the user clicks the "Add" button. The form will have drop-down boxes so the colums in the grid representing the selection should show the text of the drop-down and not the index/id. Once all data has b...