Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > dynamic dataformatstring in a gridview

Thread Tools

dynamic dataformatstring in a gridview

Posts: n/a

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


How could I dynamically apply a dataformatstring?


Reply With Quote

Thread Tools

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
2005 DataFormatString in Gridview? Tina ASP .Net 2 03-26-2008 04:06 PM
DataFormatString in GridView does not work?? Hardy Wang ASP .Net 1 12-12-2005 03:53 PM
Gridview and dataformatstring Jon ASP .Net 2 11-09-2005 02:01 PM
August CTP DataFormatString in Gridview not working Gerhard Pretorius ASP .Net 3 09-22-2005 06:40 AM
DataformatString in Gridview and Detalsview ignored Gerhard Pretorius ASP .Net 1 09-08-2005 06:01 PM