Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2414
  • Last Modified:

AutoGenerateDeleteButton - Changing the displayed text

Hi I have a gridview on my webform and want to include an edit and delete button with the gridview. I am developing in with VS2005 and VB.NET

I understand I can do this with the AutoGenerateEditButton and AutoGenerateDeleteButton but do not want to use the default text of "Edit" and "Delete" I want something more user friendly like "Change and Cancel" as I am displaying appointments.

Is this possible and if so how do I go about doing it ?

Many thanks for any help
...Steve
0
swtiley
Asked:
swtiley
  • 4
  • 2
1 Solution
 
jpaulinoCommented:
In the gridview you can change the default texts. Select the gridview, open the Edit Columns and in the selected fields select  Select. Then you can change on the command fields properties the cancel text, delete text, etc.
0
 
swtileyAuthor Commented:
Hi jpaulino,

Thanks for your comment,  however I am doing this at run time rather than design time, sorry should have mentioned that. That said I stil lcould not do what you suggested at design-time - how do you "open" the edit Columns ?

Cheers
Steve
0
 
jpaulinoCommented:
On top right of the griview in the Grivview Tasks or in the properties - columns.

Do you need to do with code (at runtime) ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
swtileyAuthor Commented:
Yes Jpaulino, I do need to do at runtime,

thank you
0
 
jpaulinoCommented:
Add just the CommandField and then add your columns
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now