FormatString in GridView

StringFormat {"0"} ?

One of the formating option which is very common with  grid views while populating data into columns

0 indicating getting data from the first coloumn of the datasource
1 indicating getting data from the second column of the datasource 
2 indicating getting data fromthe thrid column of the datasource and so on

we can also add

symbols next to it such a c for getting the currency
                          p for getting the pecentage
                          d for getting decimal
                          e for exponential and so o

No comments:

Post a Comment