![ASP.NET ComboBox](/Images/Products32/ComboBox.gif) ComboBox |
The professional replacement for the classic ASP.NET DropDownList component. |
![ASP.NET DataGrid](/Images/Products32/DataGrid.gif) DataGrid |
The server control to display data in a tabular format with options of choice, sorting and editing entries. |
![ASP.NET Include](/Images/Products32/Include.gif) Include |
The server control to include a HTML files into your ASP.NET pages as Server Side Includes (SSI). |
![ASP.NET Menu](/Images/Products32/Menu.gif) Menu |
The server control to display both statically and dynamically created menus on your Web pages. |
![ASP.NET Rating](/Images/Products32/Rating.gif) Rating |
The server control to easily provide feedback on an article, blog item, product description, etc. |
![ASP.NET TreeView](/Images/Products32/TreeView.gif) TreeView |
The ASP.NET server control to display hierarchical data in a tree structure. |
![](/Images/VS_Logo.gif) |
|
How to display only date part in the DataGrid if the Date is of DateTime datatype in the database?
[C#]
System.IFormatProvider format =
new System.Globalization.CultureInfo("en-US",true);
dg1.Columns["OrderDate"].FormatProvider = format;
dg1.Columns["OrderDate"].FormatType = typeof(System.DateTime);
dg1.Columns["OrderDate"].FormatString = "d";
[VB.NET]
Dim format As System.IFormatProvider = _
New System.Globalization.CultureInfo("en-US", True)
myDataGrid.Columns("OrderDate").FormatProvider = format
myDataGrid.Columns("OrderDate").FormatType = (New System.DateTime).GetType()
myDataGrid.Columns("OrderDate").FormatString = "d"
APNSoft FAQ Manager 1.0 (38) © 2003-2024 APNSoft. All rights reserved. |
|