grid

WPF Listview Columnheader Click Event

I have a ListView (GridView) in WPF and I'm trying to implement sorting according to http://msdn.microsoft.com/en-us/library/ms745786.aspx. In my case, the celltemplate for one of the columns contains an Expander. Now when I click the expander header, the GridViewColumnHeader.Click event fires. How do I prevent this from happening? ...

WPF How to Scroll ListView embedded in Grid

Hi There I am trying to scroll a listview control in WPF which is embedded in a Grid layout control. I can't seem to achieve this. Any ideas anyone? By the way i have set the following properties on the list view in the xaml markup: <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDe...

Is Grid.RowSpan ignored when measuring heights of rows? (WPF)

Here is a 2x2 grid, in which the first column spans both rows, but its fixed-height content seems to be dictating the minimum height for the first row: <UserControl x:Class="Test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300"> <Grid> <Grid...

Suggestion about Grid view

Hi I am trying to create a grid view containing multiple rows and columns of image views. Like a view of 4 rows and 4 columns with each cell containing an image view. Can any one please tell me the best approach for creating such view? Thanks and Best Regards... ...

Generate a dynamic grid and populate selected cells. Please help!

Hello, I want to generate a grid where people can selected one or more cells and then save them into the database in this format (row,cell): 18,27 18,28 19,27 19,28 Then I want to generate the grid and at the same time mark the cells that is occupied. I have managed to do this (see below) but it does not feel right and I must get the...

restrict edition to one cell in row editorGrid

in my editorGrid i have one column with dateField editor , when the grid is rendred i set that field to non editable : myColModel.setEditable(colIdex,false) it will be editable after the value changed in other cell in the same row myColModel.setEditable(colIdex,true) the probleme is : all the cells in the column are editables h...

Create PHP grid

Since it was so difficult draw a question out of the basic description I gave earlier, Here's a direct question: How can I loop through an array of entries in a database and display a table with three columns. Here's an example of basically what I need for each iteration in the loop: <table> <tr><td> <div>Name</div> <div><img s...

Hello, GridView Tutorial not working

I have followed the tutorial and can't seem to get it to work. Here's my code: GridView.java: package com.example.gridview; import android.app.Activity; import android.os.Bundle; public class GridView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceSt...

Why is child grid not expanding to fill parent grid width?

The grid I'm targeting is the one with background color azure: Somehow it does not go to the full width of LayoutRoot, and setting it's width programmatically will cause a layoutcycle exception. I've also tried binding the width to parent layout... but that didn't seem to work either :( <Border Style="{StaticResource ZoomBorderStyle}">...

How do i make a fluid float:left layout?

For example, i'd like to have a grid of boxes all floating left. I have the design here: atbskate.com/trusktr. The boxes on my site are all float:left. However, when i expand a box by adding content into it (ajax) it shifts the other boxes and leaves an ugly empty space. I'd like for the boxes to fill up this empty space. The idea woul...

Delete row in nested Telerik MVC grid

I face a problem - the controller method gets a NULL argument (key field value) from the nested (detail) view. What did I miss? <% Html.Telerik().Grid<mCustomer>() .Name("CustomerGrid") .Columns(columns => { columns.Bound(c => c.CustomerId).Title("CustomerId").Visible(false); columns.Bound(c => c.CustomerNam...

Programming Logic: How to Check for Neighbors in a Grid?

Hi, I'm having a lot of trouble trying to think of a logical way to check for neighbors in a "grid"-based programming project for class. The main problem I'm having is thinking of a way to effectively check whether its on the sides so that I don't get an index out of bounds error. EDIT: I forgot to mention that I'm using a 2-dimension...

How can I control the Perl version used when submitting grid jobs?

I'm working with SGE (Sun Grid Engine) to submit jobs to a grid. I also use perlbrew to manage my installed Perl versions. I wrote some short sh scripts that I use to run a perl script which requires a specific Perl version (5.12.2), which look something like this: #!/bin/bash #$-S /bin/bash source /home/dave/.bash_profile /home/dave/p...

Remove a StackPanel / Grid Unwanted Default Border?

Hey, I'm designing a UI in Visual Studio 2010, and I've come across a slight problem. I'm fairly new to XAML and this method of design, so this might be a rookie mistake. I've looked around but can't seem to find reference to a similar problem. Basically, I have a grid with 2 rows, one of which contains a stackpanel and 5 columns. The ...

Problem laying out box using grid in XUL box does not take full space

I'm trying to use xul to create a lay out like this: there is a box contains of a tree of data there is a box containing some buttons right below the previous box. I decided to use because otherwise the second box will be put right next to the first one (unless I use vbox). The problem is no matter what value I assign to flex, the bo...

Grid scrolls to top when any row is clicked in ext js

hi everyone I am facing a very strange problem. I have a grid and when i CLICK on any row then grid automatically goes to first record, though the row on which i click is selected but not focused. The problem is strange because when i used that same grid as an example then there was no problem and everything works fine. I really dont ...

Creating a grid from string using XamlReader

I have a string representation of a XAML Grid like this: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&gt; <Canvas Background="Yellow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&gt; <Label Content="textik" /> </Canvas> </Grid> What I need to do is create a Grid object ou...

wpf gridlines - changing style

Hi Is there any way to change the style of gridlines in wpf grid? I need to divide grid into 4 cells. To do it I used RowDevinitions and ColumnDefinitions. However I need user to distinguish which cell is which, that's why I need to change color of gridlines ...

Best Way To Span Multiple Columns in WPF Grid/List?

I have a custom user control I wrote in WPF to display some data. I want to show this usercontrol in a list, but I also want to provide multiple column headers (matching some properties on the user cotrol) so users can sort on properties contained in the usercontrol. I am not sure the best way to go about this. I currently have a Lis...

How to determine if a column in a datagrid is sorted or not.

I would like to click on the header of a dojo data grid and retrieve information such as if it is sorted and what direction is it sorted in, the column index, and the column name. Has anyone done this. ...