PC Review


Reply
Thread Tools Rate Thread

dynamic dataformatstring in a gridview

 
 
Tarren
Guest
Posts: n/a
 
      18th Aug 2006
Hi:

I am dealing with gridviews in .NET 2.0

If the column value "total" is negative I want the format string to be:

({0:#,##0}) with the parentheses

if it is nonnegative i just want it to be

{0:#,##0}

How could I dynamically apply a dataformatstring?

Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView not applying DataFormatString? Cesar Ronchese Microsoft VB .NET 1 30th Jan 2006 02:59 PM
2005 DataFormatString in Gridview? Tina Microsoft ASP .NET 1 30th Dec 2005 03:32 AM
DataFormatString in GridView does not work?? Hardy Wang Microsoft ASP .NET 1 12th Dec 2005 03:53 PM
Gridview and dataformatstring Jon Microsoft ASP .NET 2 9th Nov 2005 02:01 PM
DataformatString in Gridview and Detalsview ignored Gerhard Pretorius Microsoft ASP .NET 1 8th Sep 2005 07:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 PM.