Telerik Forums
UI for WinForms Forum
1 answer
148 views
I'm getting this odd error popping up when I'm using the radGrid and defining my own columns.

I've got the data bound to a business object, and all seems well, text gets updated etc.. until I bumped into trying to use an int in the grid. Using the designer generated code based off the object, I came up with:

            colText = new GridViewTextBoxColumn(); 
            colText.DataField = "SheetWidth"; 
            colText.DataType = typeof(int); 
            colText.HeaderText = "Width"; 
            colText.UniqueName = "SheetWidth"; 
            colText.MinWidth = 75; 
            uiSheets.MasterGridViewTemplate.Columns.Add(colText); 

Seemed like a pretty standard way of doing things. The grid loads up fine, displays the values, etc, however if I try to EDIT the values, it errors out with this error:
StackTrace  "   at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)\r\n   at Telerik.WinControls.UI.GridViewData.PushValue(Int32 boundColumnIndex, Int32 columnIndex, Int32 rowIndex, Object value)"    string 
Message "Object of type 'System.String' cannot be converted to type 'System.Int32'."    string 

Not only that, but it works for the second int column just fine. Literally identical columns, just different names, and yet one works as normal, and the other just refuses to take any value at all, just errors out.

It's one of the more irritating errors out there - if you guys haven't seen it before, I'll see if I can create a project for it.


Jack
Telerik team
 answered on 12 Dec 2007
5 answers
261 views
Hi Telerik Team,

I would like to know how can I recreate the same tool bar than in VS 2005 (i.e. Solution Explorer Panel). I want to disappear the line of points to the left and make the tool bar fixed inside the docked panel.

Thanks in advance & regards,

Julio
Boyko Markov
Telerik team
 answered on 12 Dec 2007
2 answers
229 views
I have a list box that I do not want the horizontal scroll to ever show.  I want the vertical if it is needed though.  How can I force the horizontal to never show?  I tried setting Visibility to hidden, but it still shows.

Thanks,
C
Angel
Telerik team
 answered on 12 Dec 2007
4 answers
221 views
Hi,

I've got a problem with the format string of the group by expression, since i've upgraded to Q2 2007 SP1, it doesn't take it.

Is there something to do ?

Thanks

Dom
Dominique
Top achievements
Rank 1
 answered on 12 Dec 2007
4 answers
521 views
How do I get the value from a check box after it has been clicked?  The code below in the ValueChanged event seems to return random results.  Note that "InitialAssignee" is the column name that I happen to be clicking on.

        private void radGrid_ValueChanged(object _sender, EventArgs _e)  
        {  
            MessageBox.Show(radGrid.MasterGridViewInfo.CurrentRow.Cells["InitialAssignee"].Value.ToString(), "");  
        }  
 

Thanks.

Georgi
Telerik team
 answered on 11 Dec 2007
2 answers
116 views
The data that is being bound to the RadGridView control in my WinForms app has ampersands in it, and the are being changed to underscores per the normal Windows hot key marking scheme (i.e. &File results in File, with the F underlined).  Can this be shut off?  Or do I need to handle each row as it's inserted?

Thanks.
Nordy
Top achievements
Rank 1
 answered on 11 Dec 2007
4 answers
263 views
I have a ListBox that before without any styling it had an attractive background (I don't remember if it was white or a blue or what) and the selected item would have nice highlighting. After the Beta, the list has a gray background and the highlighted item looks the same as it used to.
It appears that a style was left out possibly? Or if it is meant to be a gray background, I'll just set it manually to something nicer. I have a feeling it was a mistake or oversight though.
Angel
Telerik team
 answered on 11 Dec 2007
1 answer
177 views
The text property of a dockpanel is not updated when set at runtime. If I change the Text property of a dockpanel at runtime only the "caption" is updated and not the text on the tab.

If I dock the panel and click the tab it's text is updated but then the tab is not wide enough to show the complete text. Undocking the panel again will show the text correctly.

How do I make the text update properly at runtime?

Thanks!

Julian Benkov
Telerik team
 answered on 11 Dec 2007
1 answer
148 views
In the ASP.Net version of the RadTreeView, you can drag a node not only onto another RadTreeView, but also onto other controls as long as you set up the right JavaScript to handle it.

In the WinForms version, is it possible to drag a node onto another control? I tried setting the AllowDrop flag on the destination control to true, but when I drag a node over it, it has a little "no" cursor.

Jordan
Telerik team
 answered on 11 Dec 2007
1 answer
412 views
Hi there,

I have a Grid in a win app and want to select the current row when the user refreshes the grid so use:

            radGridView1.Rows[someIndex].IsSelected = true;
            radGridView1.GridElement.Update(false);

The above code kinda works but the first row of the grid is always selected as well. More than likely i'm missing the obvious.

Cheers
J



Jack
Telerik team
 answered on 11 Dec 2007
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
ScrollablePanel
DataEntry
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?