Question : data grid view format the boundfield to show as currency or as a date in c#

I am trying to dynamiclly set the format of a column in my datagridview,

I am trying to do somehitng like this

nameColumn = new BoundField();
if (x == 1)
{ nameColumn.fromat = "s";}  //set as a string
else if (x == 2)
{ nameColumn.fromat = "c";} // set to a curreny i.e. $1,000.00
else if (x==3)
{ nameColumn.fromat = "d";} // set to a date , value currently is a string "04-JAN-2010" but needw ro behave like a date like "Jan 04, 2010"

Answer : data grid view format the boundfield to show as currency or as a date in c#

double check your index.php page has session_start();

try doing a var_dump() on both $cart and $_SESSION['cart']

var_dump($cart);
should return:
---------------------------
object(ShoppingCart)#1 (0) { }


var_dump($_SESSION['cart']);
should return:
-----------------------------
array(2) { ["totPrice"]=>  int(0) ["totKorting"]=>  array(3) { ["totaal"]=>  int(0) [6]=>  int(0) [19]=>  int(0) } }
Random Solutions  
 
programming4us programming4us