or
mainGrid.CurrentCellInfo = new GridViewCellInfo(myObj, mainGrid.Columns["Description"]);I can verify that CurrentCellInfo has been properly set, however CurrentCell is always null. I'm trying to edit it programatically afterwards with:
mainGrid.Focus();
mainGrid.CurrentCell.BeginEdit();What could be wrong here?
<Button FontSize="12" Content="," />, however whenever I go over a font size of 12 the comma completely disappears. If someone has an alternative method of enlarging the comma display, would be very appreciative.
My xml code is below:Name is CountryList.xml<?xml version="1.0" encoding="utf-8" ?><Country><CountryName Name="Ashmore and Cartier Islands"/><CountryName Name="Australia"/><CountryName Name="Austria"/><CountryName Name="Bahamas"/><CountryName Name="Bahrain"/><CountryName Name="Bangladesh"/><CountryName Name="Barbados"/><CountryName Name="Bassas da India"/><CountryName Name="Belarus"/><CountryName Name="Belgium"/></Country>This is my Wpf XAML Code:<Window x:Class="WpfApplication8.MainWindow" Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> <Window.Resources> <XmlDataProvider x:Key="XmlData1" Source="DAL\CountryList.xml" XPath="Country"/> </Window.Resources> <Grid> <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource XmlData1}, XPath=./CountryName}" DisplayMemberPath="@Name" IsEditable="True" IsFilteringEnabled="True" TextSearchMode="StartsWith" StaysOpenOnEdit="True" HorizontalAlignment="Left" Margin="164,100,0,0" Name="radComboBox2" VerticalAlignment="Top" Width="174"> </telerik:RadComboBox> </Grid></Window>="{StaticResource ico16}" in the code below:<telerik:RadGridView Grid.Column="1" Grid.Row="1" AutoGenerateColumns="False" DataContext="{Binding Grid}" ItemsSource="{Binding XPath=/Collection}" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" GridLinesVisibility="Horizontal" telerik:StyleManager.Theme="Windows7"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Width="*"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" VerticalAlignment="Top" > <Image Source="{Binding XPath=@Icon}" ToolTip="{Binding XPath=@Tooltip}" Style="{StaticResource ico16}" /> <TextBlock Text="{Binding XPath=@Key}" Foreground="Black" /> </StackPanel> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns> </telerik:RadGridView><UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MyAssemblyNameHere;component/Resources/MyResourceDictionary.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </UserControl.Resources><ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Style x:Key="ico16" TargetType="Image"> <Setter Property="Margin" Value="0 0 5 0" /> <Setter Property="Width" Value="16"/> <Setter Property="Height" Value="16"/> <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/> <Setter Property="Stretch" Value="UniformToFill"/> <Setter Property="VerticalAlignment" Value="Top"/> <Setter Property="HorizontalAlignment" Value="Left"/> </Style> </ResourceDictionary>