datagrid

Inserting Selected Row onto SQL Server Database from GridView

protected void Authorise(object sender, EventArgs e) { CheckBox chk; foreach (GridViewRow rowItem in GridView1.Rows) { // gets the Debit Reference number for each row checked string type = GridView1.DataKeys[rowItem.RowIndex].Values[0].ToString(); // gets t...

binding inherited objects to c# datagrid

hi, Considering the following classes: class A : Idata { private int _id; //other private fields public int Id { get { return _id; } set { _id = value; } } //other property } class B : A { private int _field; //other private fields public int Field ...

jQuery Grid for ASP.Net MVC2

Hi, I need to choose a jQuery data grid plugin that plays well with MVC2. I sit firmly on the client side so know nothing of MVC2 so was wondering if any had any particularly good or bad experiences in MVC2 with either of the following: Datatables Flexigrid jqGrid The following functions are required: Free to use commercially Col...

WPF DataGrid icon and boolean value

Hi, I have: public class Person { String name { get; set; } String address { get; set; } bool isMarried { get; set; } } My datagrid gets populated with a list of persons. I want to have a custom column where icon-1.jpg is displayed when isMarried is true and icon-2.jpg is displayed when isMarried is false. How do I do this in WPF...

What Linq to XML do I need to bind XML to Silverlight Datagrid

I was looking at this question and it gave me about 80% of what I needed. The "problem" for me is that my XML is strucutred differently and I am not quite sure how I would go about using Linq to get at what I need. My XML looks like this (By the way, its generated by the ConvertTo-XMl PowerShell Cmdlet) <?xml version="1.0"?> <Objects> ...

Retrieve all DataGridRow's from a DataGrid

I'm trying to get a hold of all DataGridRows for a DataGrid, don't ask me why :) The DataGrid is bound to a DataView and I'm using this code but it failes after some rows.. I guess that they haven't been created yet. foreach (DataRowView item in datagrid.Items) { // Sometimes row == null... DataGridRow row = dataGrid.ItemContain...

Dynamic Spark DropDownList ItemRenderer within Flex Datagrid

I have a datagrid which contains a Spark dropdownlist that needs to obtain dynamic data. The datagrid uses a separate dataProvider. When I use a static ArrayCollection within my ItemRenderer, it works (please see listing 1). However, when I use Swiz to mediate a 'list complete' event to load the ArrayCollection, the dropdownlist does n...

Gridview taking much time to load

I am having a Gridview which takes much time to load its data, I tried to make the loading faster by implementing paging in gridview and reducing the rows to render in the grid and it got worked to an extent but still it lags in processing to bind data. Please help to overcome this problem, and i would appreciate if you can give me tip...

Flex: Printed data grid makes huge files

Hi all, I've an AIR app which prints a couple of DataGrids with approximately 3 pages worth of data each. I get great-looking printouts, but the printing is slow - I noticed that printing these 6 pages + a title page and a page of lightweight images was sent to the printer in a file of almost 50 MB (on Windows). Is this a normal size fo...

ASP.NET, what is a datagrid bound to after postback?

I have a gridview full of telephone numbers. To populate the gridview I bind the gridview's datasource to a List<> of telephone numbers. I do this when the page is first loaded, but not on postbacks. I want the user to be able to delete some of the telephone numbers, and then, if they want, click a Save button, and this will update th...