web datagrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon

    web datagrid

    Can any one please tell me how to set the width of my
    datagrid coloums after I have put them into edit mode?

    At the moment I bind the datagrid to a returning dataset;

    DataGrid1.DataS ource = f.GetData("stor edprocedure")
    DataGrid1.DataB ind()

    This populates my datagrid.

    I then press the 'edit' button, which is added to each row
    of the dg.

    The page postsbacks then returns with editable text
    boxes.. cool.

    But they are huge and make my datagrid to big for the page.

    Any ideas on how to achieve reducing them?

    Many Thanks

    Simon
  • Yan-Hong Huang[MSFT]

    #2
    RE: web datagrid

    Hello Simon,

    There are quite a few good examples on this topic. Here are some links for
    your reference:

    Top Questions About the DataGrid Web Server Control

    t/html/vbtchtopquestio nsaboutaspnetda tagridservercon trol.asp
    Contents
    Windows Forms versus Web Forms DataGrid Controls
    Controlling Column Width, Height, and Alignment
    Customizing Column Layout in Display and Edit Mode
    Formatting Dates, Currency, and Other Data
    Showing and Hiding Columns Dynamically
    Adding Columns Dynamically
    Adding New Records to a Data Source Using the DataGrid Control
    Displaying a Drop-Down List in Edit Mode
    Selecting Multiple Items Using a Check Box (Hotmail Model)
    Editing Multiple Rows At Once
    Selecting Rows by Clicking Anywhere

    Cutting Edge: Server-side ASP.NET Data Binding, Part 2: Customizing
    the DataGrid Control
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


    Summary Rows in DataGrid Controls
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


    Cutting Edge: Custom Web Data Reporting
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


    Cutting Edge: A Truly Excel-like Grid Control
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


    Hope it helps.

    Best regards,
    yhhuang
    VS.NET, Visual C++
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Got .Net? http://www.gotdotnet.com
    --------------------
    !Content-Class: urn:content-classes:message
    !From: "Simon" <simon.parkhous e@world-flowers.co.uk>
    !Sender: "Simon" <simon.parkhous e@world-flowers.co.uk>
    !Subject: web datagrid
    !Date: Tue, 8 Jul 2003 03:33:07 -0700
    !Lines: 23
    !Message-ID: <858001c3453c$5 2238640$a401280 a@phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !Thread-Index: AcNFPFIjgGRHPKQ UQ1aVN9GgBSkWmg ==
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Newsgroups: microsoft.publi c.dotnet.genera l
    !Path: cpmsftngxa09.ph x.gbl
    !Xref: cpmsftngxa09.ph x.gbl microsoft.publi c.dotnet.genera l:14935
    !NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
    !X-Tomcat-NG: microsoft.publi c.dotnet.genera l
    !
    !Can any one please tell me how to set the width of my
    !datagrid coloums after I have put them into edit mode?
    !
    !At the moment I bind the datagrid to a returning dataset;
    !
    !DataGrid1.Data Source = f.GetData("stor edprocedure")
    !DataGrid1.Data Bind()
    !
    !This populates my datagrid.
    !
    !I then press the 'edit' button, which is added to each row
    !of the dg.
    !
    !The page postsbacks then returns with editable text
    !boxes.. cool.
    !
    !But they are huge and make my datagrid to big for the page.
    !
    !Any ideas on how to achieve reducing them?
    !
    !Many Thanks
    !
    !Simon
    !

    Comment

    Working...