Asp.net programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this Asp.net and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Asp.net Website by URL, How to Play YouTube Videos in Asp.net by using Jquery , Jquery Change div background on mouseover in asp.net , JQuery UI Datepicker (Calendar) etc.

Sunday, February 15, 2015

How to give data format in to gridview in asp.net

How to display only date in Asp.net GridView when fetch data from Database:
hello friends I am pulling data from an access database to show in a GridView control on a ASP.NET project. It works fine but I want to see if I can format the data that is being pulled. Currently any currency is being truncated from xx.xx to just the dollar amounts. Also the dates are displaying mm/dd/yyyy hh/mm/ss AM/PM 

How to Display items in PopUp from DataList Button Click in Asp.net:

Here i will give Some Format Style in Asp.net Gridview there are 

DataFormatString  in asp.net examples:


  • {0:dd MMMM yyyy}    -    gives 24 February 2006
  • {0:MMM dd}          -    gives Feb 24 (substitue MMM with MMMM for the full month name
  •                          instead of abbreviation)
  • {0:dd/MM/yy}        -    gives 24/02/06
  • {0:dd/MM/yyyy}      -    gives 24/02/2006


Other Asp.net Data List Related Post :

No comments:

Post a Comment