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:
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?
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.
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.
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