Multimobile Development: Building Applications for any Smartphone
System.Web.UI.WebControls.DataGridItem Class
Information   Base Types   Related Resources

Represents an item (row) in the DataGrid control.

  • Namespace: System.Web.UI.WebControls
  • Assembly: System.Web.dll

  • System.Web.UI.WebControls.TableRow
    System.IDisposable
    System.ComponentModel.IComponent
    System.Web.UI.IParserAccessor
    System.Web.UI.IDataBindingsAccessor
    System.Web.UI.IAttributeAccessor
    System.Web.UI.INamingContainer
  • View this type on MSDN
  • Search for this type on MSDN using MSDN's own search engine
  • Google for this type - all Web
  • Google for this type - MSDN only
    Articles (38)Discussions (395)MembersRotor
    Articles

    Page: 12
    A DetailsView Control for ASP.NET 1.x
    MSDN
    Dino Esposito builds an ASP.NET 1.x custom control that mimics the behavior and the programming interface of the ASP.NET 2.0 DetailsView control.
    A Remedy for DataGrid Vertigo
    DotNetJunkies
    The AlternatingItemStyle can be a wonderful thing. But in many cases I found that I would start to get a feeling like vertigo if I scrolled the page up or down. So I thought back to my days in Manhattan in the financial industry and remembered how I used to prepare reports to be viewed on screen. I alternated the colors of the rows, but I did it every three or five rows (depending on the width of the report, the content of the report, or my own aesthetic taste).
    A simple RadioButtonList in a Web DataGrid Column
    The Code Project
    A very simple and practical way, how a single RadioButton acts as a RadioButtonList in a web DataGrid server control column.
    A Truly Excel-like Grid Control
    MSDN
    The ASP.NET DataGrid control generates an HTML output that really seems to be the Web counterpart of a Microsoft Excel worksheet. In addition, the control supports features like selection and in-place editing that can only further confirm this similarity. With in-place editing, in particular, the similarities are most clear. You click on a special type of command column and the grid redraws its content using text boxes rather than static text. At the same time, the command column changes the layout, replacing the edit link with two other links—one for saving and one for canceling changes. The overall design looks nearly identical to the Excel name box command bar.
    Adding a "Totals" Field in a DataGrid
    DotNetJunkies
    Lately one of the questions that has been popping up a lot is, "How do I show column totals in a DataGrid?" Personally I have provided sample code for this question more than a few times, so I thought it would only be appropriate that we here at DotNetJunkies HQ get a tutorial up on the topic.
    Adding a Blank Row to a DataGrid (Used to INSERT rather than UPDATE)
    DotNetJunkies
    In this article we will be illustrating one way to add a blank row to a DataGrid. Why would you want to do this? Who knows, maybe to enable a user to add a new record. This article will show you how to add a new row to a DataGrid by manipulating its DataSource - in this example a DataTable. Note that we will be simulating saving the new item back to the database.
    Adding a Totals Field in a DataGrid
    DotNetJunkies
    In this tutorial Doug shows you how to programmatically sum the values of a column in a DataGrid, and display that total in the footer of the DataGrid.
    Adding and Using RadioButton to DataGrid in ASP.NET
    The Code Project
    Adding and using RadioButton to DataGrid in ASP.NET.
    Advanced Checkbox Validation Across n-Pages for the DataGrid Control
    DotNetJunkies
    In this article, Oliver shows how to select up to two records from a datagrid that can then be compared to generate a PDF document on the fly.
    Advanced Data Mapping in .NET
    DotNetJunkies
    In this article, Tin demonstrates 3 automated mechanisms for data mapping: mapping from Database table columns to object properties, mapping from HTML form fields to object properties, mapping from ASP.NET Web controls to object properties.
    Ask the DotNetJunkies : Building a Master/Detail DataGrid
    DotNetJunkies
    Question: I have a question regarding DataGrid. Can I bind a column of a DataGrid to another DataGrid? I have a situation where I have to display a few details in the same DataGrid on click of a HyperLink column. Thanks in advance.Regards, Prathibha Sharangapani. The Answer: Prathibha, this can certainly be done. You are describing a master/detail DataGrid.
    ASP.NET Data Shaping
    MSDN
    Is it possible to port this model to Web Forms and get automatic synchronization between two DataGrid server controls? This is the question I will try to answer in this month's column.
    Building a DataNavigator Control
    MSDN
    The list of ASP.NET rich data-bound controls is a long one, but it's not all-encompassing. You won't find any Microsoft® .NET counterpart for the Data control—a scrollable and updateable binding context that data-bound controls could rely on to refresh their user interface. The original Data control allowed for simple movements—first, next, previous, and last. It worked on top of a Recordset object and exposed the UpdateRecord method to save changes according to the capabilities of the currently selected type of cursor. While not the perfect programming tool, the Data control was especially good at building simple user interfaces for tables used internally for administrative purposes.
    Building a Full-Featured Custom DataGrid Control
    DotNetJunkies
    In this article, we will examine and implement these very features and demonstrate how you can build your very own Datagrid control component, one that you will be able to customize, and more importantly reuse. Based on this ability, you will then end up with one powerful control that will have many implementations, from which you could learn about creating almost any other types of custom controls.
    Building a Master/Detail DataGrid
    DotNetJunkies
    "I have a question regarding DataGrid. Can I bind a column of a DataGrid to another DataGrid? I have a situation where I have to display a few details in the same DataGrid on click of a HyperLink column." This can certainly be done. You are describing a master/detail DataGrid. For example, a DataGrid of customers with a column in each row that has an embdedded DataGrid of all the orders placed by that customer.
    Creating a Fully Editable DataGrid
    DotNetJunkies
    In this example I have written a simple WebForm to manage a list of contacts which I have stored in XML. The requirements are simply the ability to add new contacts and to be able to modify or delete existing contacts. The user should be able to modify or delete multiple contacts at one time. I have also allowed the user to sort their grid by the column of their choosing.
    Creating DataGrid Templated Columns Dynamically
    .netBips
    Few months back I wrote article on how to create DataGrid programatically. The article explained how to created a DataGrid with bound columns on the fly. Many readers asked whether we can do similar thing with templated columns. This two part article explains just that. There are actually two ways to create DataGrid templated columns dynamically - using LoadTemplate method and implementing ITemplate interface. In Part - I, we will discuss how to use the first method i.e. using LoadTemplate.
    Cutting Edge: Moving DataGrid Rows Up and Down
    MSDN
    Solve problems with Mr. DataGrid and get a sneak preview of the control development process as it will work in ASP.NET 2.0.
    DataGrid Foreign Event Handling
    DotNetJunkies
    DataGrids seem to be very popular among all ASP.NET developers these days. I've seen whole series of articles and a lot powerful custom controls released for it. I personally think they are great as long as you manage your ViewState size and don't try to think too much outside the box, or grid in this case. Anyhow, one thing that has bothered me is that it isn't easy to wire up events like, OnSelectedItemIndexChange, in template columns containing controls like the RadioButtonList or DropDownList.
    Editable DataGrid without link buttons
    The Code Project
    This article explains how to make an ASP.NET editable DataGrid.
    GridView: Move Over DataGrid, There's a New Grid in Town!
    MSDN
    Go beyond the DataGrid!
    How to convert Datagrid into Data Entry Form
    The Code Project
    This article explains how to convert Datagrid into a data entry form for same kind of data.
    How to Create a Conditional Edit Button in a DataGrid
    DotNetJunkies
    Questi on: I would think this is obvious but I must be missing something. I want to trigger the visible value to determine whether to show the the "EditCommandButton". I tried a conditional statement () in front of it but the compiler said no. Then I tried a declaration () - but was shotdown again. Has anyone run across this... and solved it? thanks in advance. Dave
    How To Display Serial Numbers for Rows in a DataGrid
    DotNetJunkies
    The ItemDataBound of the DataGrid occurs when data is bound to a item in a DataGrid control. This article explains how to use this event and display serial numbers for rows in a DataGrid.
    How to group RadioButtons
    The Code Project
    This article describes how to group radio-buttons when using them in DataGrid, DataList, Repeater etc. controls
    Ad
    BootFX
    Reliable and powerful .NET application framework.
    iOS, Android and Windows Phone Development Training and Consultancy
    Hosted by RackSRV Communications
     
    Multimobile Development: Building Applications for any Smartphone
    Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
    Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734