Telerik Forums
UI for WinForms Forum
3 answers
382 views
I've had to override the default menus for individual cells in the application being developed, the design department wanted to keep the functionality of the copy and paste functionality of the original, since I've overriden the context menu this is no longer using the default menus provided by Telerik.

Of course I've created the menus in the context menu created, wired up the event handler for the copy menu and for some reason the clipboard just isn't retaining the data. Here is the code to copy:

            double cellValue = Convert.ToDouble(radGridView.CurrentRow.Cells[radGridView.CurrentColumn.Index].Value);
            Clipboard.SetDataObject(cellValue);

The menu is only available in columns of type GridViewDecimalColumns, hence the Convert.ToDouble on getting the value.

Pasting is done a similar way:

            IDataObject iData = Clipboard.GetDataObject();
            if (iData.GetDataPresent(DataFormats.Text))
                radGridView.CurrentRow.Cells[radGridView.CurrentColumn.Index].Value =
                    Convert.ToDouble(iData.GetData(DataFormats.Text));

However neither method works, copy or paste. The functionality is simple, copy a cell - paste a value. Data needs to be able to copied to other programs like Excel, Word, etc. Clipboard is available on the system, code does not error out, but for some reason the value is just not there.

Any assistance would be appreciated. Thank you in advance.
Dave Galligher
Top achievements
Rank 2
 answered on 19 Jan 2011
2 answers
433 views
Is there a way to remove the spinner control from columns defined as GridViewDecimalColumn? I'm just looking for a simple cell entry like in Excel with no spinner. The GridViewDecimalColumn type is being used because the input must be numeric only. Thank you
Dave Galligher
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
175 views
Hi to all Telerik fans and its experts:
i try change column font with use "Element hierarchy editor".
it is done but just in Design mode and after Running project eccur an exeption in designer code.
Please notice following code block from my designer code:
// Error Line-->((Telerik.WinControls.UI.GridHeaderCellElement)(this.raGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsCurrent = false;//<-- Error Line
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsCurrentColumn = false;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsSorted = true;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsPinned = false;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Image = null;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Text = "??? ? ??? ????????";
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Padding = new System.Windows.Forms.Padding(0, 0, 16, 0);

Exception Message:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


i cut this code block  and past it in the Form Load Event and this problem was solved And this is not that interesting for me.

But why?
Whether the telerik GridView control has an Bug?
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
15 answers
358 views
Hello,
I'd like to use an & in one of my menu items, but can't as UseMnemonic doesn't seem to be accessable. I have tried setting a TextPrimitive first and serting the text of the menu item to that, but that doesn't seem to work. I can't use && as this cuts off some of the text. How can I use UseMnemonic in the text property of a MenuItem?

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
2 answers
177 views
Hi,
        We are using SummeryRowBottom in grid view and we have set AddNewRow Position to Bottom , Now the AddNewRow Position is coming below the SummeryRow, But we want it above the Summery Row , means at last Row of grid..
When we add the row then the new row added moves to the last row of grid i.e above the summery row..
Stefan
Telerik team
 answered on 19 Jan 2011
5 answers
359 views
HI

let me know, how to check RadGridViews perticular cells text is Empty or not
instead of cells value...?

Thanks...
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
7 answers
1.4K+ views
Hi,
 I would like to set the default themes provided by telerik during the run time. Can I set the themes without dropping the theme controls and generate it during the run time?
Thanks
Stefan
Telerik team
 answered on 19 Jan 2011
9 answers
568 views
Hi I'm using Q3-2010 and I have installed the latest Service pack released yesterday and it has made no difference.

The problem I have is when I bind to the "SelectedIndex" property of the DropDownList. It works fine with other properties like "Text" but not with selectedindex.

Any suggestions please ?

Regards


Paul.
Peter
Telerik team
 answered on 19 Jan 2011
7 answers
338 views
HI,

There is any way to adjust Dropdownheight Property of the GridViewComboBoxColumn
of RadGridView...?

Thanks,
Somnath
Top achievements
Rank 1
 answered on 19 Jan 2011
5 answers
464 views
Like the ASP.NET version of this control, is this feature supported?
Jack
Telerik team
 answered on 19 Jan 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?