By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 1,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

Item Cell Text in grid

P: n/a
I have a grid that has a couple columns all are bound
columns except one..which is a button column. I use the
code

TableCell IDColumn = e.Item.Cells[1];
FileName = IDColumn.Text;

if I set the cell index to any of the bound columns I get
the text out of the cell...if I set the cell index to the
button column I don't get the value even though there is
data in the field?

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,
e.Item.Cells[1]; return the cell. If you want other items IN the cell
use findControl.

If the button name/ID id MyID it should be:
e.Item.Cells[1].FindControl("MyID").Text;
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.