|
-
Jul 22nd, 2018, 08:56 AM
#1
Getting a GridViewRow bound item?
In c# you can get the backing data bound member of a DGV using this
C# Code:
DataGridViewRow dgvRow = dataGridView1.Rows[rowNum];
object boundItem = dgvRow.DataBoundItem;
Is there any such way to do this using an ASP.net 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
Kevin
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
-
Jul 24th, 2018, 02:50 AM
#2
Re: Getting a GridViewRow bound item?
Hi,
You may want to check GridViewRow's DataItem property
- kgc
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|