Hi I use DataFormatString property in my gridColumn
thr problem is that when the number is negative
the minus is in the right side of the number instead of the left size
my grid is set to be RightToLeft cause its hebrew
this is my code
..........
one more thing,
I'll thank you if you can give me an example of how to arange my controls
inside a GroupBox
so that the scrolls of my grid will not get crazy...
thr problem is that when the number is negative
the minus is in the right side of the number instead of the left size
my grid is set to be RightToLeft cause its hebrew
this is my code
<GroupBox Name="gbAccountManagment" Margin="2,2,2,2" MaxHeight="580" Height="480" VerticalAlignment="Top" > |
<GroupBox.Header> |
<Grid> |
<Grid.ColumnDefinitions> |
<ColumnDefinition></ColumnDefinition> |
<ColumnDefinition></ColumnDefinition> |
</Grid.ColumnDefinitions> |
<Button Grid.Column="0" Name="btnAccountManagmentPlus" Visibility="Hidden" Width="20" Click="btnAccountManagmentPlus_Click">+</Button> |
<Button Grid.Column="0" Name="btnAccountManagmentMinus" Width="20" Click="btnAccountManagmentMinus_Click">-</Button> |
<Label Grid.Column="1">ניהול חשבונות</Label> |
</Grid> |
</GroupBox.Header> |
<StackPanel> |
<StackPanel Orientation="Horizontal"> |
<TextBlock Margin="100,5,5,5" FontWeight="Bold" Width="60">סוג תקציב</TextBlock> |
<ComboBox Name="cmbBudgetType" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbBudgetType_SelectionChanged"></ComboBox> |
<TextBlock Margin="100,5,5,5" FontWeight="Bold" Width="60">סוג פעילות</TextBlock> |
<ComboBox Name="cmbActivityType" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbActivityType_SelectionChanged"></ComboBox> |
<Button Name="btnFilter" Margin="30,5,5,5" Click="btnFilter_Click">הצג</Button> |
<Button Visibility="Hidden" Name="btnTry" Margin="30,5,5,5" Click="btnTry_Click">Try</Button> |
</StackPanel> |
<telerik:RadGridView Name="gvAccount" Margin="5,5,5,5" AutoGenerateColumns="False" |
CanUserResizeColumns="False" CanUserReorderColumns="False" |
CanUserFreezeColumns="False" ShowGroupPanel="False" CanUserSortColumns="False" |
FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="True" CanUserInsertRows="False"> |
<telerik:RadGridView.Resources> |
<Style x:Key="ToolTipColumnStyle" TargetType="telerik:GridViewCell"> |
<Setter Property="ToolTip" Value="{Binding Content,RelativeSource={RelativeSource Self}}" /> |
</Style> |
</telerik:RadGridView.Resources> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="BudgetTypeName" Header="תקציב" Width="60"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון/ סעיף/תת סעיף" Width="160" CellStyle="{StaticResource ToolTipColumnStyle}"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מס' חשבון/ סעיף/תת סעיף" Width="110" /> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00}" UniqueName="TotalBudget" Header="הקצבה כוללת (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="BalanceBudgetAllocation" Header="יתרה לתקצוב (אש''ח)" Width="75" /> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumBudgetRequest" Header="שריון לפעילויות (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumOrderAllocation" Header="התחייבות לפעילויות (אש''ח)" Width="75" /> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumOrderPaid" Header="שולם בפועל (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="BalanceToPay" Header="יתרה לתשלום (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="ActivityTypeName" Header="סוג פעילות" Width="120"/> |
</telerik:RadGridView.Columns> |
one more thing,
I'll thank you if you can give me an example of how to arange my controls
inside a GroupBox
so that the scrolls of my grid will not get crazy...