Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Edit Column in GridView

Posted on 2009-04-13
4
388 Views
Last Modified: 2012-05-06
Is it possible to change the order of appearance of the "Edit" column on an editable GridView?  I'd like it to appear next to a given column instead of all the way tio the left.

Also, can I change the word?  I'd like it to say "select" instead of "Edit".
0
Comment
Question by:NigelRocks
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
Gorkem Yuksel earned 500 total points
ID: 24132657
Hi,

Yup.. In the Columns editor, just bring the edit button up in the list and place it under the column entry that you want the button to be placed next to.  In the appearance section of the column settings, you can change the text of the button to be whatever you like.

If you need more step by step instructions, let me know.

Cheers,

G.
0
 
LVL 1

Author Comment

by:NigelRocks
ID: 24132695
Wait...I don't see the "edit" column in the list of columns.  This is the "edit" column automatically generated by the GridView, not one I've added myself.
0
 
LVL 1

Author Comment

by:NigelRocks
ID: 24133152
Are you going to leave me hanging after you got those easy points?  
0
 
LVL 9

Expert Comment

by:Gorkem Yuksel
ID: 24138499
Hey Nigel,

In your columns editor, you should see an item called CommandField, or if you chose a specific type of button from the CommandField buttons, you will see an Edit,Update,Cancel or Select or Delete..

You can use the up/down arrows to position this "column" anywhere on the row..  Also, when you view the properties (on the right half of the columns editor), you will see (under appearance) the following entries that you can change..

ButtonType - This could be a Link, Image, or a button

EditText - If you have the button type set as a link or button, you can change the text that is displayed to the user as the link or button.

Thats all there really is to it.

Cheers,

G.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question