Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
XamWebGrid TextColumn FormatString
posted

hi

I have a

ComboBox with 2 ComboBoxItem :

1: price

2: percentage

and I have Xamwebgrid with

TextColumn with value 0

if i select ComboBoxItem 1(Price):

FormatString

 

="{}{0:C}"

if i select ComboBoxItem 1(Percentage)

 

 

TextColumn txPriceC = (TextColumn)gvDiscount.Columns["PriceC"

];

txPriceC.FormatString =

"{0:0.00}%";

need to update Textcolunm format visible automatically when i select the ComboBoxItem type

 

but TextColunm with format is not visible until i select the Cell in XamWebGrid

can anyone help me.