troubleshooting Question

Need help learning Datagrid Basics

Avatar of PBLack
PBLack asked on
.NET ProgrammingVisual Basic.NET
6 Comments1 Solution233 ViewsLast Modified:
I am very new to datagrids, so new that I am having a hard time grasping the concept. I would like to teach it to myself with the aid of you, the expert. Currently I am only interested in unbound datagrids.

I have been looking all over the web and can not find any learning material that will help me reach my goal.

I find the best way to learn is by example so will begin by posting a series of questions...starting out simple and progressing forward. I know what I want for an end product but do not want to post a question that is miles long when I do not understand the basics. The bottom line is I want to learn and not just get code so here goes...


I am using VB.Net 2005 SP1 Compact Framework

I have added a datagrid called dgTest to Form1. This has to be unbound. I want to add 4 columns 3 will be textboxes and one will be a combobox.

Col 1 textbox Header Name: Client ID
Col 2 textBox Header Name: First
Col 3 textBox Header Name: Last
Col 4 combobox Header Name: Color

All Columns and Header names are to be visible

The textboxes will be blank but the combobox will have the values of "Red", "Blue", "Orange" and can not accept typed in data. It has to be a selected value.

The total width of the datagrid is 226. I need the width of each column to be 56.

How do I do this?


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros