grid

Where can I find a .NET datagrid that performs updates and inserts out of the box?

Is there a built-in grid that I could do the following simply: SELECT * FROM MYTABLE It would list all the rows, with paging support. Allow me to update/delete/insert a row by double clicking on it and making it editable etc. Does this exist? Does it require me to write any code to perform the CRUD operations? (any version of ASP.N...

Selecting a rows in the standard .net 2.0 GridView Using VB.net & JavaScript

Does anyone know how i can get the grid to select a row by clicking on any cell in the row? The only way i can do this at the moment is by setting the AutoGenerateSelectButton property to True, but this adds a column to the grid with a crude "select" hyperlink and only selects the row if the word "Select" is cliked on. Surely there ha...

display image in a grid using extjs

I am new to extjs. I want to display icon images for each grid elements. can you please healp me anybody? i am getting the image path from an xml file. my code is below. here i am displaying image path. i have to replace it by displaying image. Ext.onReady(function(){ var store = new Ext.data.Store({ url: 'new_frm.xml', ...

How to hide Label or TextBlock inside a WPF Grid

I am trying to hide the TextBlock and Label which are placed inside a grid like so: <TextBlock Grid.Column="3" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden">Text inside TextBlock</TextBlock> <Label Grid.Column="4" Grid.Row="2" HorizontalAlignment="Center" Visibility="Hidden">Text inside Label</...

Using a Grid as an ItemsHost

I would like to use a Grid as an ItemsHost but none of the items appear in their bound (column, row) positions. How can I make this work? As a simple example: XAML <ItemsControl ItemsSource="{Binding DataSet}"> <ItemsControl.ItemTemplate> <DataTemplate> <TextBlock Grid.Column="{Binding Col}" Grid.Row="{Binding Row}" Text="{Bindi...

How do i get row keys / cell values & call a method when a row is selected in the standard .net 2.0 Gridview

I have standard .net 2.0 gridview control from which i want to get row keys or cell values from the grid when a row is selected. I also need to call a method each time a row is selected. Does anybody know How i can do this using ASP.net & VB? ...

In ASP.Net MVC 1.0 How do I insert model child data?

I am just playing around with MVC for the first time and am having a problem. Let's say I have 2 tables - Person and Location. Location has a foreign key relationship to Person - so 1 person can have multiple locations belonging to them. In my view I have form inputs for the Person fields - this works fine. However, I also want to h...

Imitating excel sheet with Dojo Grid HELP?

I have a basic web page that I'm trying to capture the enter key when pressed. I will have a page with many rows( depending on what was pulled by the database ) where each field is editable. What I'm trying to do is when a user is focused on a certain column on a certain row, I want them to be able to press enter and their focus will go ...

retrieve perimeter points relative to center point in grid

Given p(0,0), how do I retrieve points{(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1),(-1,0),(-1,1)} which are the perimeter points relative to p offset by 1. ...

Grid editing multiple records in ASP.NET

I've got to present a spreadsheet-style interface with a grid of textboxes for the user to fill in in an ASP.NET application. What's the most efficient way to construct this and to save the results? ...

Anyone know the algorithm used to size Grid columns with spanning cells? (WPF)

Using the WPF Grid control is easy when your child elements are always contained within a single grid cell (i.e. there is no column/row spanning). A fixed width column stays the requested fixed width, an auto column will indeed size itself to be as wide as the widest cell in the column. Star columns share any remainder space according to...

Advanced JavaScript data store & grid widget

We have written a data store / grid widget system in JavaScript that automatically updates all widgets associated with a data store whenever some of the data changes. Its nice features are: it supports sorting by multiple attributes (for example, by status, then priority descending, then date ascending, or whatever) the sort order is...

Ext JS - How to update data source update every minute with deltas ?

Looking for a reference implementation. Haven't tried LiveGrid - though tilting towards that implementation. Before I migrate, I was wondering if anyone could point me in a better direction. ...

Determine if postback is page_load or itemcommand

I've got a user list on the left side of my page in a datagrid and I want to load a div in the right side of my page with the clicked user's information. I assume I'll do the load of the div in the itemcommand event, but how do I handle page load then? Do I need to know what caused the postback? Do I need to reload the grid on page_load ...

Silverlight: Delete content of a specific cell in a grid

I have a grid and I need to dynamically replace a control that resides in one of the cells. I don't know in terms of syntax to pinpoint the grid cell, as where do I put in the row and column number so I can delete whatever is in it. ...

Binding Grid to a Linq Datasource from Winforms (.net)

Back in the old days (i.e. last month) I'd bind my winforms grid to a dataset and be off and running. By default the grid contents could be updated. (similar to an Excel spreadsheet) But, if I bind a grid to a Linq datasource (either Linq to SQL or Linq to Entities) my winforms grid is locked into a read-only mode. How can I enable an...

auto width & overflow div

Hi, I am creating some sort of grid for a project. The grid has one special requirement (that is the reason why we are trying to create one in house), the middle columns have to be scrollable. To picture the situation: We created the grid more or less like this: There is a topcontainer div, that contains 3 other divs the left middle a...

How to move a Grid Panel in WPF Window.

HI, How do I move (drag) a Grid Panel inside a WPF Window? The Grid Panel does not have a Position or Location or X and Y coordinate porperty. All I am looking at is to move the Grid Panel from its current location to a new location using Mouse so that the controls that are "burried" underneath it will show up. Any pointers? Many Than...

How do I position an element within a WPF Grid column?

Let's say I want to position an element at the coordinates x=20, y=5 within the 3rd column of a Grid control. How do I do this? Do I need to add a Canvas panel to the column and then add the controls to it? Thanks. ...

jqGrid with custom cell colors

Is it possible in jqGrid(jquery grid http://www.trirand.com/blog/) to have custom cell text colors e.g. in price column i want red if price > 100$ and green if price < 50$ else grey? More generally do jqGrid provides hooks to change grid cellview, e.g. i can register a callback whenver cells of price column are created or modified. o...