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 / Windows Forms / Design Time / April 2006

Tip: Looking for answers? Try searching our database.

Strings for DataGridViewComboBoxColumn from resource file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jens.ro - 01 Apr 2006 15:10 GMT
Hello,

if I add a ComboBox to a form via the designer and insert the text for
items, then these strings are fetched from the resource file:

// designer generated code
myComboBox.Items.AddRange(new object[]{
   resources.GetString("myComboBox.Items"),
   resources.GetString("myComboBox.Items1")});

If I do the same with a DataGridViewComboBoxColumn, the strings for the
items are directly in the code:

// designer generated code
myDGVComboBoxColumn.Items.AddRange(new object[]{
   "Entry 1",
   "Entry 2"});

What should I do that the item strings for the
DataGridViewComboBoxColumn are also fetched from the resource file?

Greetings, Jens
Kevin Spencer - 01 Apr 2006 16:30 GMT
myDGVComboBoxColumn.Items.AddRange(new object[]{
   resources.GetString("myComboBox.Items"),
   resources.GetString("myComboBox.Items1")});

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

> Hello,
>
[quoted text clipped - 18 lines]
>
> Greetings, Jens

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.