ComboBox |
The professional replacement for the classic ASP.NET DropDownList component. |
DataGrid |
The server control to display data in a tabular format with options of choice, sorting and editing entries. |
Include |
The server control to include a HTML files into your ASP.NET pages as Server Side Includes (SSI). |
Menu |
The server control to display both statically and dynamically created menus on your Web pages. |
Rating |
The server control to easily provide feedback on an article, blog item, product description, etc. |
TreeView |
The ASP.NET server control to display hierarchical data in a tree structure. |
|
|
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. |
|