Telerik Forums
UI for WinForms Forum
8 answers
663 views
Hello All,
I have a rad gridview for winforms. I am using Q3 SP 2010. I am trying to display NO DATA FOUND when we dont find any data in the dataset. I had a look at other forms and tried doing this.
me.radgridview.TableElement.Text="No data found"
But I am not able to access the "TableELement" property. I know with telerik it would be some where down the hierarchy. Any help would be great. Thanks in advance.
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
3 answers
298 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
324 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
127 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
302 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
146 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
315 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.3K+ 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
510 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
255 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
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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?