Click here to Skip to main content
16,016,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anyone can help me? Using Month Calendar tool and Datagridview in VB.Net
Posted
Comments
OriginalGriff 20-Feb-14 3:57am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Try editing your question, set teh subject to "Save DataGridView automatically" and put the body of your question in the actual body.
Then, expand the body so it makes sense to us mere mortals who are trying to work out what the heck you are trying to do, what you have tried, where you are stuck, and what help you need!
Use the "Improve question" widget to edit your question and provide better information.

1 solution

VB
Private Sub MonthCalendar1_DateSelected(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateSelected
        Me.TextBox1.Text = Format(e.End, "dd-MMM-yyyy")
        Dim i As Integer
        While (i <> Me.DataGridView1.Rows.Count - 1)
            Me.DataGridView1.Item(0, i).Value = Format(e.End, "dd-MMM-yyyy")
            i = i + 1
        End While
    End Sub



If you want to add Calendar Column in Datagrid, it can be done by using calendar class. If you need I will add in this solution. I have used in my various projects.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900