Telerik Forums
UI for WinForms Forum
1 answer
240 views
Hi,
I am using RAD gridview with a checkbox.
On clicking on checkbox, grid view enters in Edit Mode.
when i click on save button on page, no changes made in gridview are updated in database.
When i change a row in grid and click on other row, row gets updated and then on clicking Save button changes commit to database.
i need to know whether it is possible to update telerik gridview datasource programmatically on save button click.

Thanx

Jack
Telerik team
 answered on 22 Jun 2009
2 answers
283 views
I'm thinking of purchasing your controls for an upcoming project but I am getting a couple of errors that I'm hoping you can help me with.  I have a sample project available.

1) The error below happens when I bind to the grid:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Telerik.WinControls.UI.GridTableElement.GetRowStyleForType(String elementTypeFullName)
   at Telerik.WinControls.UI.GridTableElement.GetRowStyle(GridRowElement row)
   at Telerik.WinControls.UI.GridRowElement.GetRowStyle()
   at Telerik.WinControls.UI.GridRowElement.ApplyCustomFormatting()
   at Telerik.WinControls.UI.GridRowElement.UpdateInfo()
   at Telerik.WinControls.UI.GridTableBodyElement.UpdateState()
   at Telerik.WinControls.UI.GridTableElement.UpdateCurrentColumn()
   at Telerik.WinControls.UI.GridViewTemplate.SetCurrentColumn(GridViewColumn column, Boolean update, Boolean shift, Boolean control)
   at Telerik.WinControls.UI.GridViewTemplate.set_CurrentColumn(GridViewColumn value)
   at Telerik.WinControls.UI.GridTableElement.UpdateCurrentPosition()
   at Telerik.WinControls.UI.GridViewInfo.SetCurrentRow(GridViewRowInfo row, Boolean setPosition, Boolean shift, Boolean control, Boolean rightMouseButton)
   at Telerik.WinControls.UI.GridViewTemplate.SetCurrentRow(GridViewRowInfo rowInfo)
   at Telerik.WinControls.Data.DataAccessComponent.InitDataGrid()
   at Telerik.WinControls.Data.DataAccessComponent.Bind(Object dataSource, String dataMember)
   at Telerik.WinControls.Data.DataAccessComponent.set_DataSource(Object value)
   at WindowsApplication4.Form1.worker_DoWork(Object sender, DoWorkEventArgs e) in c:\devprojects\WindowsApplication4\WindowsApplication4\Form1.vb:line 14

2) The second error is Exception has been thrown by the target of an invocation. There is no clear way to reproduce. Sometimes it happens on startup, other times it me three or four clicks.
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at WindowsApplication4.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Please le tme know if you can help.
Victor
Telerik team
 answered on 19 Jun 2009
1 answer
112 views
I have a grid which will display mostly static data with 2 excepions. Each cell in the first row in the grid needs to be a single column combo box. Also, one of the columns (all but the first row, that is) needs to be a multi-column combo box.

What's the best approach to go about doing this?

Thanks

Carl
Martin Vasilev
Telerik team
 answered on 19 Jun 2009
3 answers
315 views
Hi,

Can anyone help with what seemed to be relatively easy action, and has now plagued me for sometime.

What i require to do is change the selected "highlighted node" in my tree view when i change my current page without clicking the tree view itself.? I change page programmatically and require the tree view to correspond to the new page once it has loaded.

I have managed to get the tree view selecting the top parent node using the following code, however and attempts to achieve anything slightly more accurate i fall short.!

Sample Line Of Code Below.

((

CS_MainForm)this.Owner).treeView.SelectedNode = ((CS_MainForm)this.Owner).treeView.Nodes[0];

Sample Line Of Code Above.

I have tried to change the selected node using the line of code below, but have had no joy..

Sample Line Of Code Below.

 

((

CS_MainForm)this.Owner).treeView.SelectedNode = ((CS_MainForm)this.Owner).treeView.Nodes["New Page Name"];

Sample Line Of Code Above.

So far all of my attempts have failed and i would be grateful if somebody could offer me some assistance. I have a feeling its staring me right in the face and i just can't see it.

Kind Regards
Chris

 

Victor
Telerik team
 answered on 19 Jun 2009
1 answer
409 views
I have a requirement to add a remove button column, so that i can delete a record rowwise.
So I need a way to customize the Command button in GridViewCommandColumn to add an image to it and change its theme.
Can you help me about this?
Boryana
Telerik team
 answered on 19 Jun 2009
1 answer
95 views
Hi Telerik:

I just installed the version Q1 from 2009  i don't have too much variety among the themes. For example, if i am using a radgridview, i can only choose among "vista" "default control" and "Reset".

What do i have to do to see the rest of them  ?


Thanks Pablo
Deyan
Telerik team
 answered on 19 Jun 2009
1 answer
350 views
Hi All,


I am using a telerik grid view in a windows application being devloped in C# SCSF framework 3.5 .

I have the following columns in the grid

SN: Name: Desc: Read Allowed:Write Allowed

Read allowed and write allowed columns are check boxes.

When the grid is bound with a collection the check boxes of that particular row needs to be disabled if the collection property is false in the collection.
If the collection property is true then the check box in the particular row is enabled.

So rows may have enabled or disabled checkboxes based on the collection result returned after a search.

Can anyone help me as to how I can do this for all the rows shown in the grid at runtime.

This is easily possible in web as it has the RowDataBound and ItemDataBound events which can allow to enable disable cells in all rows

How do we achieve this in the windows forms...

Please help ..thanks in advance.

Regards,
Sakshi

Martin Vasilev
Telerik team
 answered on 19 Jun 2009
1 answer
131 views
Hi guys,

I need how to validate a row in the grid? Where the row is created or changed.
Could You please give me some help?

Many thanks,




Victor
Telerik team
 answered on 19 Jun 2009
3 answers
349 views
I use the Aqua theme but need a different background color on the row that the mouse points to.

Where to change it?

Thanks!
Victor
Telerik team
 answered on 19 Jun 2009
1 answer
95 views
Hi... I am  using RadTreeview .I drag a row from Grid and drop in RadTreeview. I need the value of the node tag in Drag Drop event .How to get  the tag in Drag Drop event.?

Victor
Telerik team
 answered on 19 Jun 2009
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?