 |
|
 |
.NET Forum
|
|
Open forum for all things .NET, including C#, ASP.NET, and VB.NET. Feel free to post or browse through postings for lots of .NET information and help.
Previous Page Next Page
|
Collapse All | Post Message
|
MESSAGE PREVIEW (Replies) |
POSTED BY |
WHEN |
Thanks in advance if anyone has any advice for the issue I am trying to resolve here. I currently have a datagrid view populated in a form within my application and previously I had all columns and cells displaying as text fields. Now I have 4 new columns (6-9 in the code below) that I want to display as simple combo menus (not bound to a table).
This code will run but it doesn’t turn the columns I want into combo selections; it inserts new columns into my grid. The number of new columns that are output to the grid in this situation more than doubles the number of columns existing in the dataset that I am populating the grid with. Also the new columns that are inserted do have the combo menus that I created, but the grid is still not correct. I am not sure that dgModules.Columns.Insert(column index, cboHBSize)
is the correct solution to changing the last 4 columns to display combobox menus?
I am using:
Visual Studio 2005, Visual Basic.NET
In this scenario I am calling a single function in my form class that I am using to format the columns of the grid I am working with. Here is that block of code:
Public Sub GetGridColumnAppearance()
' Make the ModuleID column invisible
With dgModules.Columns(0)
.Visible = False
End With
' Make the Module Identity Column
' read only so these values cannot be modified
With dgModules.Columns(1)
.ReadOnly = True
.HeaderText = "Module Id"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
End With
With dgModules.Columns(2)
.HeaderText = "Top Elevation"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
End With
With dgModules.Columns(3)
.HeaderText = "Length"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
End With
With dgModules.Columns(4)
.HeaderText = "Width"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
End With
With dgModules.Columns(5)
.HeaderText = "Horizontal Rebar Centers"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
End With
' combo box drop down menus for each of the following
' columns
With dgModules.Columns(6)
.HeaderText = "Horizontal Bar Size"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
Dim cboHBSize As New DataGridViewComboBoxColumn
cboHBSize.Items.Add("#4")
cboHBSize.Items.Add("#5")
cboHBSize.Items.Add("#6")
dgModules.Columns.Insert(6, cboHBSize)
End With
With dgModules.Columns(7)
.HeaderText = "Horizontal Bar Spacing"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
Dim cboHBSpacing As New DataGridViewComboBoxColumn
cboHBSpacing.Items.Add("1' 1/4" & Chr(34))
cboHBSpacing.Items.Add("8" & Chr(34))
dgModules.Columns.Insert(7, cboHBSpacing)
End With
With dgModules.Columns(8)
.HeaderText = "Vertical Bar Size"
.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
.SortMode = DataGridViewColumnSortMode.NotSortable
(0) |
dsmith |
6/4/2007 11:17:00 AM |
how can framework call different langauges compilers such as csc,vbc,jsc... at run time
framework do that that task automatically it's not a answer for that one
plz reply to me (0) |
chinnaa4 |
6/3/2007 10:32:00 AM |
http://www.free-ebooks-download.org
-- EBOOKS FREE !! Do visit this free ebook site where you can download free ebooks on MCSD.NET , MCTS Dumps
and lots of other free IT ebooks http://www.free-ebooks-download.org for C# ebooks , VB.NET ebooks , ASP.NET ebooks , ADO.NET ebooks , http://www.free-ebooks-download.org AJAX ebooks , SQL 2005 ebooks and more!!
Thanks
Jay
http://www.free-ebooks-download.org (0) |
asp.net ebooks |
5/21/2007 1:44:00 AM |
hi!
i am new to .net and also web applications builiding but i have accepted a huge project and i am stuck at the very beginning! please help!
my problem is with consuming a webservice which is quite complex. most books only provide simple examples... how do i use a webservice with almost 10 parameters?
and everytime i try to add the webservice i get the following error...
e:\inetpub\wwwroot\AbacusEasy1\Web References\availability\Reference.map(1): Custom tool error: Unable to import WebService/Schema. A schema with the namespace '' has already been added.
what does this mean and how do i handle it??????
please do help! it is critical!!
(0) |
madhuguru |
5/5/2007 2:53:00 PM |
Hi friends,
I am new to ASP.NET technology. I want to know the 'ViewState' property of controls like textbox. What is the purpose of the above property? Plz help me... (0) |
Bazeer |
4/12/2007 5:38:00 AM |
hi.. i can i ask how to clear combobox when bind to database..i have a combobox name cbocatname that list all the available categories of food like pizza,pasta,toppings.My other combobox name cboProdName that list the foods under pizza example under pizza category have hawaain,mozarella cheese.I have a code that whenever i change the cboCatname what happen is it shows all the product tagged to it and the previous product i choose.Example on my first search in cbocatName i choose pizza so on the cboProdName appear all the list of pizza foods,and if i choose again pasta on the cboCatName the previous pizza food does not delete instead all the food under pizza was added to the food under pasta..hope u understand.. (0) |
aihm09 |
4/9/2007 11:08:00 AM |
Hi,
i want to insert foreign characters in ms access can anybody solve my problem.At present the problem is when inserting foreign characters it is stored as ? in place.Please help. (0) |
Raajesh |
4/5/2007 1:03:00 AM |
hi
our projects did a task of hiding a volume(eg D: , E: , F:) in our
mycomputer. by using registrykey, we hide the drives .
But if any software(eg back up software, full format software) is
installed in my system that installed software detect that hidden
volume(our project hidden volume) and use that volume as normal
volume.
our idea is to if any software installed in our system that software
should not detect our hidden volumes.we want to completely hide
except our project window. our project has to interact with
os(operating system) and say hidden volumes are not available
in our hard disk.
completely denied access to other software.
tell how registry key is applied to our application only.
please ...
(0) |
vinothsivakumar |
3/15/2007 7:34:00 AM |
To hide volume drives from the other processor(eg. bakup software).
so how to hide the drive completely in windows.
(0) |
vinothsivakumar |
3/15/2007 12:39:00 AM |
do any one know how to create tabs in c# .net. (0) |
sowmyat |
3/9/2007 5:11:00 AM |
hi,
do any one know how to migrate to next page using a button in c# .net?
plz help (0) |
sowmyat |
3/9/2007 5:11:00 AM |
I want Product Activation code in asp.net 2.0 Web Application (0) |
chsatish77 |
3/7/2007 1:50:00 AM |
Hello. I using Microsoft.Office.Tools.Word into my project. How using it? Examples? Help me? please... (0) |
Alenka |
3/5/2007 7:32:00 AM |
IOPC International Online Programming Contest
Dear Friend,
IIT Kanpur, as a part of its technical festival, Techkriti, is organizing
IOPC - The international Online Programing Contest
IOHC - The International Online Hacking Contest
IOPC will be held on 17th February, 2007 and will run for 24 hours. IOHC will be
held on 24th February. Both of these provide you a platform to compete with the best
around
the world. You get to solve some real tricky problems, and at the end
of the day you could be the winner of handsome prizes too. Fun, isn't it?
Prizes:
We offer one of the highest prizes in the country! A total prize of close to $2000
is at stake.
In 2006, more than 1000 teams (which included several international
teams of top-rated coders) particiapted in the contests. We hope that
this time the particiaption will be even higher.
So what are you waiting for ? Register online now !! Check out the webpage at :
http://www.techkriti.org/
Please forward this mail to all your friends who might be interested
in participating in IOPC 2007 or IOHC 2007.
Let us challenge the worldwide programmers! (0) |
cspd |
2/12/2007 12:41:00 PM |
Sir,
I have created a windows forms control in which I put a DSO Framer control. I have compiled it and registered in GAC. Even
its doing fine when I used it in another windows application. But When I try to put it in a web page its not showing anything
as it is the same thing showing the required word doc in windows application.
Please tell me what are the steps do I need to take to make it fine. Thank you.
Regards,
(0) |
indian143 |
1/19/2007 8:44:00 AM |
Learn Microsoft.Net in Just 24 Hours - Improve your Chances of Getting a Good Job
A Microsoft operating system platform that incorporates applications, a suite of tools and services and a change in the infrastructure of the company's Web strategy.
Start Learning
# .NET Introduction - Introduction to microsoft .NET
http://www.academictutorials.com/microsoft.net/dotnet-introduction.asp
# .NET Building Blocks - Building blocks of Microsoft.NET platform
http://www.academictutorials.com/microsoft.net/dotnet-building-blocks.asp
# .NET Framework - The infrastructure for the new Microsoft .NET platform
http://www.academictutorials.com/microsoft.net/dotnet-framework.asp
# .NET Software - Languages supported by .NET framework
http://www.academictutorials.com/microsoft.net/dotnet-software.asp
# .NET Web Services - What’s a web service
http://www.academictutorials.com/microsoft.net/dotnet-web-services.asp
# .NET Aims And Objectives - Design goals of microsoft .NET framework
http://www.academictutorials.com/microsoft.net/dotnet-aims-and-objectives.asp
# .NET Summary - Summary
http://www.academictutorials.com/microsoft.net/dotnet-summary.asp
(0) |
smita arora |
1/12/2007 2:21:00 AM |
Mastering Active Server Pages 3
Mastering Active Server Pages 3 by A. Russell Jones Average Customer Review: 3.0 out of 5 stars Currently unavailable Amazon.com Microsoft Active Server Pages (ASP) technology is popular for both Internet and intranet Web sites, thanks to its use of familiar Visual Basic script, easy access to databases, and integration with Windows NT and Windows 2000. This title is a complete guide to ASP 3 (the Windows 2000 version),
http://www.bestebooksworld.com/ebook/1468
Active Server Pages 3.0 by Example (By Example)
Book Description ASP by Example assumes a basic knowledge of VBScript and teaches you how to create dynamic web sites quickly and easily. Using real-world examples, ASP 3 by Example teaches proper, accepted coding techniques that will cause fewer problems and allow you to apply your knowledge to more than simply the...
http://www.bestebooksworld.com/ebook/1469
Professional ADO 2.5 RDS Programming with ASP 3.0
Book Description Together, Microsoft's ADO data access technology and their dynamic internet package Active Server Pages have become a powerful combination for delivering data-driven content across the web. Combined with RDS - remote Data Services- they allow web developers to manipulate data held in a range of databases smoothly effectively and well.
http://www.bestebooksworld.com/ebook/1470
Beginning Active Server Pages 2.0
If you're new to Web development--or even new to programming in general--Beginning Active Server Pages 2.0 is good place to start for learning how to program with Active Server Pages (ASPs) using Microsoft Internet Information Server (IIS). In this accessible and clearly written text
http://www.bestebooksworld.com/ebook/1471
Professional ASP XML
Book Description XML, the Extensible Markup Language, is a platform-independent language for describing data. The XML and related specifications, as well as the Document Object Model, have all been developed with language independence in mind. This was done to allow any programmer to use these powerful protocols and object models in their own language of choice, thus providing a huge development potential for the XML community and offering a myriad of opportunities to developers working with established technologies. ASP has long been leading technology for server-side, dynamic web applications. And XML, as the newest markup language and a standard format for the universal sharing of data, is undoubtedly set to become an intrinsic part of all major development both on the Web, and in the wider business community. The next generation of web sites will inevitably combine these technologies as e-commerce matures and developers look for more efficient ways to integrate Internet presence with business systems.
http://www.bestebooksworld.com/ebook/1475
Professional ASP XML
Book Description XML, the Extensible Markup Language, is a platform-independent language for describing data. The XML and related specifications, as well as the Document Object Model, have all been developed with language independence in mind. This was done to allow any programmer to use these powerful protocols and object models in their own language of choice, thus providing a huge development potential for the XML community and offering a myriad of opportunities to developers working with established technologies. ASP has long been leading technology for server-side, dynamic web applications. And XML, as the newest markup language and a standard format for the universal sharing of data, is undoubtedly set to become an intrinsic part of all major development both on the Web, and in the wider business community. The next generation of web sites will inevitably combine these technologies as e-commerce matures and developers look for more efficient ways to integrate Internet presence with business systems.
http://www.bestebooksworld.com/ebook/1476
ASP, ADO, and XML Complete
Book Description ASP, ADO, and XML Compl (0) |
sonalee |
1/5/2007 1:28:00 AM |
ASP.NET with C#
Free ASP.NET / C# book - ASP.NET with C#
http://www.bestebooksworld.com/ebook/1339
Inside Asp.net WebMatrix
Free ASP.NET book - Inside Asp.net WebMatrix
http://www.bestebooksworld.com/ebook/1340
Asp.Net Code Examples
ASP.NET Code Tutorial
http://www.bestebooksworld.com/ebook/3630
Developing .NET Web Services with XML
Developing .NET Web Services with XML - Free ASP.NET / Web Services / XML book
http://www.bestebooksworld.com/ebook/1341
C Sharp Developer's Guide to ASP.NET XML and ADO.NET
C Sharp Developer's Guide to ASP.NET XML and ADO.NET - Free ASP.NET / ADO.NET / XML book - C
http://www.bestebooksworld.com/ebook/1342
Build Your Own ASP.NET Website Using C# & VB.NET
Free ASP.NET / C# / VB.NET book - Build Your Own ASP.NET Website Using C# & VB.NET
http://www.bestebooksworld.com/ebook/1343
ASP.NET
asp.net programming and using with c#
http://www.bestebooksworld.com/ebook/1361
ASP.NET with C#
ASP.NET With C#
http://www.bestebooksworld.com/ebook/1379
COM and .NET Interoperability
COM and .NET Interoperability provides a complete overview on the process of building .NET applications which interact (interoperate) with existing COM code. This can be downloaded in Apress free book section.
http://www.bestebooksworld.com/ebook/1395
ASP.NET for Dummies (Paperback)
Book Description Ah, the wide world of the Web. You just can’t do business without a Web site, and the more compelling and interactive it is, the better. In a competitive environment, keeping your Web site fresh and exciting can have a real effect on your bottom line. If you’re a corporate Web site developer or a small business owner responsible for maintaining your own site, ASP.NET is the technology that can give you that competitive edge. It’s easy to use and works with other familiar languages, like Visual Basic and HTML, to help you set up cool interactive Web pages. With ASP.NET, you can * Add a survey or calculator to your Web site * Enable data retrieval * Create a monthly calendar * Send e-mail from your site * Set up a real-time chat room, and more
http://www.bestebooksworld.com/ebook/1444
Sams Teach Yourself Active Server Pages 3.0 in 21 Days
Book Description The friendly, tutorial style of Sams Teach Yourself Active Server Pages 3.0 in 21 Days empowers you to create your own Active Server Pages quickly and easily. Using client-proven methods, and his award-winning advice to Web developers from around the world, ASP master Scott Mitchell provides you with an understanding of ASP and IIS fundamentals, and guides you through the use of VBScript and ASP's built-in objects, enabling you to create your own dynamic, database-driven Web solutions. You'll benefit from Scott's expert knowledge of topics including creating dynamic content, interacting with the user, reading and writing files on the Web server, creating personalized content with cookies, reading a database using ASP, and debugging your ASP scripts.
http://www.bestebooksworld.com/ebook/1446
Sams Teach Yourself E-Commerce Programming with ASP in 21 Days (Teach Yourself -- 21 Days)
Book Description The friendly, tutorial style of Sams Teach Yourself E-Commerce Programming with ASP in 21 Days empowers you to create your own online stores quickly and easily. Using online-proven methods, Stephen Walther, an expert e-commerce developer, provides you with an understanding of online commerce applications, then guides you through the use of VBScript and ASP's built-in objects, enabling you to create your own dynamic, database-driven e-commerce solutions. This book does not stop at just creating the online store. The author teaches you to create order tracking systems, manage advertising, create store reports, personalize the shopping experience and much more.
http://www.bestebooksworld.com/ebook/1448
ASP: Learning by Example
Book Description Focusing on the essential knowledge needed to quickly l (0) |
sonalee |
1/5/2007 1:27:00 AM |
Barcode ASP.Net Web Form - Our lightweight Barcode ASP.Net component is 100% managed C# code Web Control which can add professional quality 1D barcode image to your ASP.Net web pages running on the IIS server....
http://www.vyomlinks.com/rd.asp?Id=388
(0) |
smita arora |
1/4/2007 5:35:00 AM |
.Net Mobile
MMIT : Microsoft Mobile Internet Toolkit (.NET Mobile)
An extension of the .NET framework providing a simple and a quick way to build Wireless applications.
Here it is possible to build a Wireless application using any of the framework services like Web Services, ADO .NET…
http://www.academictutorials.com//dotnet-mobile/
(0) |
smita arora |
1/4/2007 5:34:00 AM |
i am going to make a software which can read and write data on cassette tape on visual C#.I am new to Visual C#,so please send me explainatory tutorial for it.ALso help me with regard to my problem. (0) |
manish chhajer |
12/31/2006 12:29:00 AM |
Hello evryone! In the text below is a program that I can't make.Please help me!
Synthesize a program, wich calculates the number of bits
in n(number wich is in binary code).The template of the program is:
{Q:(1
S(initially);
{inv P:(1
{bound t:m-1}
do B -> S od
{R:2^j-1
Transform the program in Pascal or ASML.
If you only know the algorithum of calculating bits in an integer I'll be thankful! (0) |
Gog |
12/27/2006 3:35:00 AM |
hi,
i had a problem wiht datagrid.if possible plz try to solve it.
i datagrid when i select one item i should get the PopPup page. im able to get it but the problem is when i get the popup page the grid font size is being increased. this should not happen it should remain the same how it was.
(1) |
mar |
12/11/2006 5:14:00 PM |
hello all of u friends i m a laymaen in this technology with civil background but i m sure i will make it with yours help so please give answes of my quaries in lucid way i m highly thankfull of youtrs.
(0) |
arunsingh |
12/11/2006 12:55:00 PM |
i want to know how to write stored procedure and how to execute it (0) |
hemad |
12/8/2006 9:34:00 AM |
Previous Page Next Page
|
Collapse All | Post Message
|
|
|
|
 |
|
Search
Featured Book

Introducing Microsoft .Net, Third Edition
|
Featured Software

Microsoft Visual Studio Standard 2005
|
|
|
|
|
 |