Click here to Skip to main content
15,915,867 members

Comments by Member 10067861 (Top 2 by date)

Member 10067861 17-Jan-14 2:21am View    
not getting , plz reply
Member 10067861 17-Jan-14 2:19am View    
Not Getting , plz dont mind .
where i written this below code
Public Class Form1
Inherits Form

Private dataGridView1 As New DataGridView()

<stathreadattribute()> _
Public Shared Sub Main()
Application.Run(New Form1())
End Sub

Public Sub New()
Me.dataGridView1.Dock = DockStyle.Fill
Me.Controls.Add(Me.dataGridView1)
Me.Text = "DataGridView calendar column demo"
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) _
Handles Me.Load

Dim col As New CalendarColumn()
Me.dataGridView1.Columns.Add(col)
Me.dataGridView1.RowCount = 5
Dim row As DataGridViewRow
For Each row In Me.dataGridView1.Rows
row.Cells(0).Value = DateTime.Now
Next row

End Sub

End Class

in Component CalendarColumn.vb or in form1 code
name space is also confict is there ...
and one issue in MyBase.CellTemplate = value, -> " CellTemplate is not a member of ' System.ComponentModel.component'"

plz reply...