I have been using the wizard to create a RadGridView on a VB .NET 4.5 WinForms application. Going into the "open Property Builder" aspect of the wizard. I need to create a column of "dates" and I've tried several ways to do it.
I tried using the GridViewDateTimeColumn, figuring there was a way to turn off the "time" portion of it. I cannot find it. I feed the date from the database as a "Date" format, so the cell displays "9/25/2013 12:00:00 AM" instead. There were additional problems with the mask, but I can't remember what they were off-hand.
So I tried using the GridViewTextBoxColumn and discovered that it will insert the date, but that it does comparisons as strings. And in one of my gridviews, it still has the time portion even though I even parse the data using the .NET parsing for date only!
The data coming from the database is "CONVERT(DATE, DtField)" so I know it should be coming back as a date only.
I even looked into building the gridview programmatically, but I can't find any entry for a GridViewDateColumn (or something like it) anywhere.
What am I missing? Is there no strict "date" only column or ability to adjust the date/time column to date-only?
Oh and one more thing: it appears that even if I handle the cell_doubleclick event of the gridview (the intent is to insert the current date on doubleclick of the cell), the gridviewtextboxcolumn cell on the inside does not allow you to double-click it -- is it treated separately? I haven't tried to fix this yet, as I'm fixing other bigger issues, but I'm wondering if there is a way to let the event bubble down or to grab it bubbling up? (for that matter, I haven't seen any way to grab events bubbling up... do they even bubble events up out of the RadGridView?)
I tried using the GridViewDateTimeColumn, figuring there was a way to turn off the "time" portion of it. I cannot find it. I feed the date from the database as a "Date" format, so the cell displays "9/25/2013 12:00:00 AM" instead. There were additional problems with the mask, but I can't remember what they were off-hand.
So I tried using the GridViewTextBoxColumn and discovered that it will insert the date, but that it does comparisons as strings. And in one of my gridviews, it still has the time portion even though I even parse the data using the .NET parsing for date only!
The data coming from the database is "CONVERT(DATE, DtField)" so I know it should be coming back as a date only.
I even looked into building the gridview programmatically, but I can't find any entry for a GridViewDateColumn (or something like it) anywhere.
What am I missing? Is there no strict "date" only column or ability to adjust the date/time column to date-only?
Oh and one more thing: it appears that even if I handle the cell_doubleclick event of the gridview (the intent is to insert the current date on doubleclick of the cell), the gridviewtextboxcolumn cell on the inside does not allow you to double-click it -- is it treated separately? I haven't tried to fix this yet, as I'm fixing other bigger issues, but I'm wondering if there is a way to let the event bubble down or to grab it bubbling up? (for that matter, I haven't seen any way to grab events bubbling up... do they even bubble events up out of the RadGridView?)