or
private void OnDragInitialize(object sender, DragInitializeEventArgs e)<br> {<br><div><span style="font-size: 11px; line-height: 1.4;"> var radGridClientObject = sender as RadGridView;</span><br></div> if (radGridClientObject != null)<br> {<br> if (radGridClientObject.CurrentCell.IsInEditMode)<br> {<br> return;<br> }<br> }<br><div></div>public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem) { Grid cellGrid = cell.Content as Grid; TextBlock primaryText = new TextBlock(){ TextAlignment = System.Windows.TextAlignment.Right }; TextBlock compareText = new TextBlock() { TextAlignment = System.Windows.TextAlignment.Right, Foreground = new SolidColorBrush(Color.FromRgb(100, 100, 100))}; if (string.IsNullOrEmpty(this.DataMemberBinding.StringFormat)) { this.ComparedPlanBinding.StringFormat = this.DataFormatString; this.DataMemberBinding.StringFormat = this.DataFormatString; } primaryText.SetBinding(TextBlock.TextProperty, this.DataMemberBinding); compareText.SetBinding(TextBlock.TextProperty, ComparedPlanBinding); if (cellGrid == null) { cellGrid = new Grid(); cellGrid.ColumnDefinitions.Add(new ColumnDefinition()); cellGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(20)}); cellGrid.ColumnDefinitions.Add(new ColumnDefinition()); cellGrid.RowDefinitions.Add(new RowDefinition()); cellGrid.Children.Add(primaryText); Grid.SetColumn(primaryText, 0); Grid.SetRow(primaryText, 0); cellGrid.Children.Add(compareText); Grid.SetColumn(compareText, 2); Grid.SetRow(compareText, 0); } return cellGrid; }public class MyDataSource : ChartDataSource{ public MyDataSource() : base() { this.ValueAggregateFunction = new SumFunction(); }}