Home Forums WinForms controls Xceed Grid for WinForms How to use datepicker in cellviewer Reply To: How to use datepicker in cellviewer

User (Old forums)
Member
Post count: 23064

Hi Michel,

 I’ve created an example project and sent it to your support email. Basically this is what I’m doing:

 


Public Sub CreateTestGrid()


Dim NewCol As New Xceed.Grid.Column(“Test”, GetType(Date))

GridControl1.Columns.Add(NewCol)

Dim FormatDateComponent As New System.Globalization.DateTimeFormatInfo


FormatDateComponent.ShortDatePattern = “MMM yyyy”


NewCol = New Xceed.Grid.Column(“Test2”, GetType(Date))


NewCol.FormatSpecifier = “d”

NewCol.FormatProvider = FormatDateComponent

GridControl1.Columns.Add(NewCol)

Dim Row As Xceed.Grid.DataRow

Row = GridControl1.DataRows.AddNew()

Row.Cells(0).Value = Now

Row.Cells(1).Value = Now

Row.EndEdit()

End Sub

 

When I click on Cell 1 the calendar opens, but when I click on Cell 2 nothing happens.

http://imageshack.us/photo/my-images/860/snapshot001d.png/

 

Thanks

Kai

Imported from legacy forums. Posted by Kai (had 346 views)