[RESOLVED] First thread & help needed
Hello guys/girls
I have a slight problem. I'm supposed to develop an small application for my company without databases.
I want to have grid with choices. The first column & rows is from monday to sunday. The next couple of columns has to do with time.
Drawing:
http://feb06.imgshare.us/cucacf.jpg
I thought about using a DataGridView.
Problem: If somebody enters info in monday row & friday row, then how do I extract the info? I must somehow check the rows for entered info. If tueday is empty then how do I know?
Version: VB Express 2005
:sick:
Re: First thread & help needed
Sounds like you need to do some reading on the DataGridView. I suggest that you go to the MSDN2 library (see my signature for a link) and search for "DataGridView". You'll get plenty of matching articles and help topics that will tell you all about using one.
Re: First thread & help needed
Quote:
Originally Posted by jmcilhinney
Sounds like you need to do some reading on the DataGridView. I suggest that you go to the MSDN2 library (see my signature for a link) and search for "DataGridView". You'll get plenty of matching articles and help topics that will tell you all about using one.
Thanks, that helped somewhat. But I can't figure out how to add a single cell value to one column. (like the drawing)
I can add rows but now the cell values (monday - sunday). The other column cells should have no value at all. :eek2:
1 Attachment(s)
Re: First thread & help needed
I just knocked this form up with no DataGridView experience. I added three columns, disabled adding and deleting and made the first column read-only. I then add this code:
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.DataGridView1.Rows.Add("Sunday", Nothing, Nothing)
Me.DataGridView1.Rows.Add("Monday", Nothing, Nothing)
Me.DataGridView1.Rows.Add("Tuesday", Nothing, Nothing)
Me.DataGridView1.Rows.Add("Wednesday", Nothing, Nothing)
Me.DataGridView1.Rows.Add("Thursday", Nothing, Nothing)
Me.DataGridView1.Rows.Add("Friday", Nothing, Nothing)
Me.DataGridView1.Rows.Add("Saturday", Nothing, Nothing)
End Sub
Re: First thread & help needed
That solved my problem... thanks alot!
Re: First thread & help needed
If your thread is resolved, you can go to the top under "thread tools" and mark it as "resolved". Welcome to the forum :)