473,385 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Get Text From Bound Buttoncolumn's Button

Hello all! I have a simple datagrid bound to a datatable with three
columns in it. The first column is a buttoncolumn bound to the first
column in the datatable which causes the text on the buttons to show
the values in the datatable column. What I'm trying to do is, upon the
user clicking one of the buttons in the buttoncolumn, get the text from
that button and put it in a string. For some reason I can get the text
from any column in the grid except the text on the button that was
clicked! I've tried several methods and can't get more than an empty
string, such as:

tc = new TableCell
tc = e.Item.Cells(0)
Dim strText as string = tc.text

or

strText = e.Items.Cells(0).text

or strText = CType(e.Items.Cells(0), button).text

Please help! I have to submit this web page for testing by Monday!
Thank you for any help you can provide...

Cory

May 26 '06 #1
0 1038

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MS Newsgroups | last post by:
Hi, I am new to the datagrid and I am trying to figure out how to get the text string from the cell when a bound linkbutton is clicked. According to the documentation, I should the Itemcommand...
4
by: z. f. | last post by:
Hi, i stated that this is an advanced question because i have a post from few days ago that i received answers to with suggestions that looked good but did not work, so please if you post a...
2
by: John Mason | last post by:
Hi, I have a datagrid of invoices with a buttoncolumn that users can click on to pay a particular invoice. Once the invoice is paid, the datagrid is reloaded, however, the button to pay the...
1
by: Sathyaish | last post by:
How do you get the text of a ButtonColumn control column in a datagrid? As an example, I tried this little snippet on a test project, but it returns a null string. Private Sub...
2
by: jmclej | last post by:
Hi, I would like to use a buttoncolumn in my datagrid. But I don't want to enable the click on it on all the rows. I want to enable the button according to the data specified in another column....
1
by: Billow | last post by:
Hello I'd like to change the text of cells of a column which has been set as a buttonColumn and bounded to a datafield. I have tried to change its texts with code,but met a setback. Beneath...
0
by: engwar1 | last post by:
I am using a DataGrid to display images on a webpage. One of the images is the "default" image for this user. I have a ButtonColum that allows users to click to make a particular image their...
1
by: Ben | last post by:
Hi there, I would like to change the text of the ButtonColumn after datagrid binding, depending on the value of a certain field. (eg. Text="Details" for case 1, Text="others' for case 2) Is...
2
by: ismaelf | last post by:
i have a textbox in a template column in a datagrid, it displays the initial value of the row, but when i change it remains with the original value (it doesnt get the new value..) i fill the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.