or
I'm having problems with row height not auto - sizing with text wrapping on. When I enter a long string, it will wrap to two lines in the row, but it doesn't display the third row. I would like to row height expand to automatically to display all the text.
Below is the grid XAML code I'm using.
<telerik:RadGridView Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled"ItemsSource="{Binding Path=CustomSqlStatus}" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserSelect="False" UseLayoutRounding="True" CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False" Padding="2" ShowGroupPanel="False" IsFilteringAllowed="False" CanUserSortGroups="False" RowIndicatorVisibility="Hidden" MaxColumnWidth="400"><telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=SqlCommandName}" Header="Command Name" HeaderCellStyle="{StaticResource BoldFont}" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Comments}" Header="Comment" HeaderCellStyle="{StaticResource BoldFont}" TextWrapping="Wrap" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=SQL}" Header="Sql" HeaderCellStyle="{StaticResource BoldFont}" TextWrapping="Wrap"/></telerik:RadGridView.Columns></telerik:RadGridView>
01.<telerik:RadMap Height="472" Margin="0,52,0,0" VerticalAlignment="Top" x:Name="RadMap1"02. ZoomLevel="14"03. MinZoomLevel="6"04. MaxZoomLevel="21"05. Center="41.92481708629, 12.5"06. NavigationVisibility="Visible"07. Cursor="ScrollAll"08. ZoomBarVisibility="Visible"09. CommandBarVisibility="Visible">10. <telerik:RadMap.Provider>11. <telerik:UriImageProvider x:Name="UriImageProvider1" GeoBounds="42.0, 12.3, 41.17, 13.88" Uri="Maps/myMap_Z13.jpg" />12. </telerik:RadMap.Provider>13. <telerik:InformationLayer Name="informationLayer">14. <telerik:MapPinPoint Name="mapPinPoint" telerik:MapLayer.Location="41.92481708629, 12.5"15. Text="Cavalcavia" Cursor="Hand"16. ImageSource="Maps/icon01.png" MouseLeftButtonDown="MapPinPoint_MouseLeftButtonDown" >17. <telerik:MapLayer.HotSpot>18. <telerik:HotSpot X="0.5" Y="0.5" />19. </telerik:MapLayer.HotSpot>20. 21. </telerik:MapPinPoint>22. </telerik:InformationLayer>23. </telerik:RadMap>01.BitmapImage oImage = new BitmapImage(new Uri(System.AppDomain.CurrentDomain.BaseDirectory + "\\" + UriImageProvider1.Uri.OriginalString));02. 03. Size geoSize = this.RadMap1.GetGeoSize(new Location(0, 0), new Size(oImage.PixelWidth / 10, oImage.PixelHeight / 10));04. LocationRect view = new LocationRect(new Location(0, 0), new Location(-geoSize.Height, geoSize.Width));05. 06. view.MapControl = this.RadMap1;07. this.RadMap1.GeoBounds = view;08. this.RadMap1.MinZoomLevel = view.ZoomLevel;09. this.RadMap1.SetView(view);