PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Getting a GridViewRow bound item?-VBForums
Results 1 to 2 of 2

Thread: Getting a GridViewRow bound item?

  1. #1

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004

    Getting a GridViewRow bound item?

    In c# you can get the backing data bound member of a DGV using this
    C# Code:
    1. DataGridViewRow dgvRow = dataGridView1.Rows[rowNum];
    2. object boundItem = dgvRow.DataBoundItem;

    Is there any such way to do this using an GridView that has a data table as its data source?

    I have a data table with about 20 fields and I only need to show about 10 of them, but I need the other 10 for back ground calculations and file paths and such.

    So far all I've figured out is to create Grid columns for everything, then hide the columns I don't want to show. I would rather not even make those hidden columns if I can get to the hidden data directly.
    Thanks for looking
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    Last edited by kebo : Now. Reason: superfluous typo's

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Cebu, PH

    Re: Getting a GridViewRow bound item?


    You may want to check GridViewRow's DataItem property

    - kgc
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal |Programming | GitHub

    Rating someone's post is a way of saying Thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width