Telerik Forums
UI for WinForms Forum
1 answer
157 views
I've encountered another problem with the GridView.  I cannot reproduce it on demand, but have triggered the error several times.  I realize that the process of causing the problem is beyond normal user action of the control, but stumbled on it all the same.

Clicking rapidly in the header area, especially on the seperator between columns, can cause the foolowing error to occur:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.GridHeaderRowElement.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
   at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.UI.GridRowElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Again, I realize rapidly clicking in the header is not common or normal.  Perhaps I have a twitchy index finger :).  Nonetheless, the error does occur.

Thanks
Jack
Telerik team
 answered on 18 Jun 2007
5 answers
182 views
Hi!

I have a problem with the "pin icon" and "close icon" of a DockPanel not showing correctly. The problem is also in the "Auto Hide" example. When you launch the example and open one of the auto hidden dock panels the pin and close icon are simple black ones. First when you hover them with the mouse they are drawn correctly with the green pin and red close icons.

The icons in the docked dock panels are shown correctly it's only a problem when a dock panel is auto hidden from the beginning.

How to solve this?

Thanks!
Julian Benkov
Telerik team
 answered on 15 Jun 2007
3 answers
274 views
My Grid is populated with the following code:
cn.Open()
Dim dt As New DataTable
Dim da As New SqlDataAdapter("SELECT * from MyTbl WHERE [JobID] = '123', cn)
da.Fill(dt)
Me.RadGridView1.DataSource = dt

When I edit a cells contents and then move to the next row.  I should be able to send updates to SQL.   I tried using the event RadGridView1_CurrentRowChanged and then:
Dim strColValue As String = e.OldRow.Cells("myCol").Value.ToString
But the Old Value is returned.

How do I get an efficient 2-way link established between RadGrid & SQL?

Thanks in advance for any help.
-New Telerik Winforms user

Julian Benkov
Telerik team
 answered on 15 Jun 2007
1 answer
191 views
I'm not sure whether I have just not found the feature, but it would be good to be able to place a RadMenu on a form and then to be able to assign it/parts of it as the context menu property of other controls on the form.  I guess wanting everything, it would be good to be able to do this dynamically through code too.

Best regards

Marek
Jack
Telerik team
 answered on 15 Jun 2007
2 answers
147 views
Hi,

I used to be a web developer, so WinForms is not my thing. But now my boss asked me to make a little program with an Access database for some calculations.

And since we have the WinForm Controls as well, I wanted to use them. That's why I decided to use the RadPanelBar. And that went ok.

But can someone please give me a very short tutorial of how to work with the SplitContainer. I want to have in the left the navigation. And in the right box I want to load different forms, is this possible?

Thnx!
Kevin
NightFlash
Top achievements
Rank 1
 answered on 15 Jun 2007
1 answer
119 views
Hello,

Can we change the Tab skin to a skin with a height of 36px instead of 22px?

Thanks,
Shimon Shed
Boyko Markov
Telerik team
 answered on 14 Jun 2007
1 answer
75 views
Hi,

Now after the frustration and wasted time of working with WinForms I find the bug I reported has been pulled from the forum with no explanation.

You really have gone down in my estimation.

Please, explain your actions. The post wasn't abusive, rude or dishonest. It contained valid points regarding the usability of your WinForms controls.
Vassil Petev
Telerik team
 answered on 14 Jun 2007
1 answer
187 views

e.CurrentRow.DataBoundItem throws a nullreference exception if it is not set. This should really be solved by just returning null, because using this code:

if(e.CurrentRow.DataBoundItem != null)
{
    //some code
}

doesn't work. Catching the exception causes unwanted side effects.

Jack
Telerik team
 answered on 13 Jun 2007
1 answer
216 views
I try to add rows with "GridViewRowInfo Collection Editor", but when I try to press "Add" I always get following error messages:
"Constructor on type 'Telerik.WinControls.UI.GridViewRowInfo' not found. Any suggestion?
Georgi
Telerik team
 answered on 13 Jun 2007
1 answer
315 views
I have issues setting row formatting for a particular row.  I tried using the RowFormatting event to look at the underlying data item, and compare it to another value.  Based off of that I set the e.RowElement.BackColor to either white or grey.  The problem is that neither one actually shows until I select the row.  Once I select it I get the correct background color until I select another row.

Is there something I am missing...
Kiril
Telerik team
 answered on 13 Jun 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?