V
VancouverMike
Hi,
I am using Visula Studio 2005, C# and ASP.NET 2.0 with SQL Server 2005. I am
using GridView control(databound to dataset) to display data from database. I
have a smalldatetime type of field in database, and I would like to display
this field in two columns in GridView control, one for Month and one for
Year. For the Month column in GridView control, I would like to display the
full name of the month, i.e. for Month 1 display January, for Month 2 display
February, etc. I can use DatePart function in Stored Proc to get numeric
month and year from the smalldatetime field, but I don't know how to
transform the numeric month to a full name month in GridView control. I would
just like to show the data, in read mode, not in Edit mode.
Could anybody give me a hand on this?
Thanks a lot,
Mike
I am using Visula Studio 2005, C# and ASP.NET 2.0 with SQL Server 2005. I am
using GridView control(databound to dataset) to display data from database. I
have a smalldatetime type of field in database, and I would like to display
this field in two columns in GridView control, one for Month and one for
Year. For the Month column in GridView control, I would like to display the
full name of the month, i.e. for Month 1 display January, for Month 2 display
February, etc. I can use DatePart function in Stored Proc to get numeric
month and year from the smalldatetime field, but I don't know how to
transform the numeric month to a full name month in GridView control. I would
just like to show the data, in read mode, not in Edit mode.
Could anybody give me a hand on this?
Thanks a lot,
Mike