Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / DataGrid / February 2007

Tip: Looking for answers? Try searching our database.

Overriding Gridview Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
a - 08 Feb 2007 09:34 GMT
Hi,

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

thanx
Bruno Alexandre - 08 Feb 2007 12:04 GMT
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

Signature

Bruno Alexandre
Strøby, Danmark

"a Portuguese in Denmark"

> Hi,
>
[quoted text clipped - 3 lines]
>
> thanx
a - 08 Feb 2007 12:39 GMT
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...
> when using localization with resources all you need is to set the variable
> title to that string
[quoted text clipped - 23 lines]
>>
>> thanx

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.