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...
DATAGRID QUESTION 1
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?