Groups | Blog | Home
all groups > asp.net datagrid control > february 2007 >

asp.net datagrid control : Overriding Gridview Control


a
2/8/2007 11:34:36 AM
Hi,

I want localize GridView Control
What i have override to change default text in CommandField: Edit,
Delete,Update... ?


thanx

Bruno Alexandre
2/8/2007 1:04:15 PM
when using localization with resources all you need is to set the variable
title to that string
like
Text="<%$ Resources:Resource, EditBtnText %>"

where Resource is the file Name and EditBtnText the String inside that
Resource file

if you are using

AutoGenerateEditButton="True"

you need to delete this and creat an Button
like
<asp:ButtonField ButtonType="Link" Text="<%$ Resources:Resource, EditBtnText
%>" CommandName="Edit" />


to know further about Localization, please take a look at this Video:
http://www.asp.net/learn/videos/view.aspx?tabid=63&id=40

--

Bruno Alexandre
Strøby, Danmark

"a Portuguese in Denmark"


[quoted text, click to view]
a
2/8/2007 2:39:41 PM
thanx,
but i want to made custom Gridview and drag&drop it to web page with another
CommandField default text. This feature save a lot of my time


"Bruno Alexandre" <bruno.in.dk@gmail.com> parase naujienu
pranesime:265B0078-86E2-4F03-9165-62D4F9407988@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button