Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Grid Tech Support » DateTime Cell Collapse All
Subject Author Date
Dennis Mwape Oct 11, 2006 - 7:36 AM

Thanx for the help on using the comboboxcell I have managed to find ways on how to use an it is working perfectly for me.I seem to have another hitch.One of the column in the unbound grid is a date time data type I want it assistant on how to use this cell in the unbound grid.

Technical Support Oct 12, 2006 - 6:11 AM

Using DateTime cells in the unbound grid is pretty easy and similar to using other cell types. Just do like this:

Dim dataRow As DataRow = UnboundGridControl1.NewDataRow()

UnboundGridControl1.Rows.Add(dataRow)

Dim dateTimeCell As DateTimeCell = CType(dataRow.AddNewCell(GetType(DateTimeCell), DateTimeColumn1), DateTimeCell)

dateTimeCell.DataValue = DateTime.Now