Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no date in datagrid

Status
Not open for further replies.

HomerJS

Programmer
Jun 25, 2001
86
US
How can I change a column in a datagrid that originally had a date to display blank?

TaskGrid.Item(TaskGrid.CurrentRowIndex, 5) = 0

I am using column styles to set up the grid and display only columns I want to show. I have tried 0 (zero), nothing (TaskGrid.Item(TaskGrid.CurrentRowIndex, 5) = nothing), DBNull.Value, a space. All error saying 'Cannot convert to type datetime'.


 
I have had trouble with this as well. Did you ever figure out how to do it with code?

I do know that the end user can press ctrl + 0 and it will pop a null in there.

Mitch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top