Change text of edit/update/delete buttons

R

RH

Hi,
I Have a datagrid with edit/update/delete hyperlink buttons and would
like to change the text of these buttons during runtime. How can I do
that?
Regards,
Remco.
 
S

Stevie_mac

In DataGrid_ItemDataBound(...)

Dim lb as LinkButton
lb = CType(e.Item.Cells(0).Controls(1), LinkButton)
lb.Text = "Upd
lb = CType(e.Item.Cells(0).Controls(3, LinkButton)
lb.Text = "Can"
(Assuming they are in Col 0 - Update is 1st control, Cancel is 2nd control)

OR

Change columns to Template Items (in property builder) & edit them directly /
Chage them to images / whatever!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top