JAM Posted April 22, 2003 Posted April 22, 2003 Hi Every one I'm trying to pick a date from date and time picker, as a result the date will be inserted into a datagrid cell or column. I was able to do it with a textbox but I have no idea how to do it with a datagrid. Please help.
Moderators Robby Posted April 23, 2003 Moderators Posted April 23, 2003 you can do something like this... Datagrid1.Item(Datagrid1.CurrentCell.RowNumber, _ Datagrid1.CurrentCell.ColumnNumber) = _ calendar1.SelectionStart.ToLongDateString Or set a couple of member variables to make sure that the user actually selected a cell. You can do this in the DataGrid1_CurrentCellChanged event. m_nSelectedCell = Datagrid1.CurrentCell.ColumnNumber m_nRowNumber = Datagrid1.CurrentCell.RowNumber 'so you would check the value of these variables prior to 'assigning any values to them (so they don't crap-out) Visit...Bassic Software
ericvdb500 Posted July 4, 2003 Posted July 4, 2003 Jam, did it worked? If so, can you show me how? thanks, Eric - Italy
Moderators Robby Posted July 4, 2003 Moderators Posted July 4, 2003 Eric, did you even try? Please open a new thread if you have a specific question as this one is a few months old and JAM has not been on for over a month. Visit...Bassic Software
Recommended Posts