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)
];
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.
Thanks for your suggestion Steve but it doesn't seem to work.
-Mev
Hi,
I'm not sure if this will work, but i'm guessing it will. After you change the Column's FormatString property, call InvalidateData on the xamWebGrid.
That should trigger a refresh, and cause the cells' to update.
-SteveZ
do you have any dirty workaround for it which could be used in the meantime?
This appears to be a bug, and I have asked our Developer Support staff to write up a support ticket for you.
TextColumn txPriceC = (TextColumn)gvDiscount.Columns["PriceC"