Telerik Forums
UI for WinForms Forum
5 answers
183 views
Hi,

I have a problem using datatable.getChanges method with a radGridView binded on a datatable, changing values programmaticaly:
The first changed value is not in the datatable.getChanges results.

Here is a simple example :

Designer.vb
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class testTelerik
    Inherits System.Windows.Forms.Form
  
    'Form remplace la méthode Dispose pour nettoyer la liste des composants.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
  
    'Requise par le Concepteur Windows Form
    Private components As System.ComponentModel.IContainer
  
    'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
    'Elle peut être modifiée à l'aide du Concepteur Windows Form.  
    'Ne la modifiez pas à l'aide de l'éditeur de code.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Dim GridViewTextBoxColumn1 As Telerik.WinControls.UI.GridViewTextBoxColumn = New Telerik.WinControls.UI.GridViewTextBoxColumn()
        Me.RadGridView1 = New Telerik.WinControls.UI.RadGridView()
        Me.RadButton1 = New Telerik.WinControls.UI.RadButton()
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.RadButton1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadGridView1
        '
        Me.RadGridView1.Location = New System.Drawing.Point(27, 34)
        '
        'RadGridView1
        '
        Me.RadGridView1.MasterTemplate.AllowAddNewRow = False
        Me.RadGridView1.MasterTemplate.AllowDeleteRow = False
        Me.RadGridView1.MasterTemplate.AllowEditRow = False
        Me.RadGridView1.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill
        GridViewTextBoxColumn1.FieldName = "Name"
        GridViewTextBoxColumn1.FormatString = ""
        GridViewTextBoxColumn1.HeaderText = "Name"
        GridViewTextBoxColumn1.Name = "column1"
        GridViewTextBoxColumn1.Width = 219
        Me.RadGridView1.MasterTemplate.Columns.AddRange(New Telerik.WinControls.UI.GridViewDataColumn() {GridViewTextBoxColumn1})
        Me.RadGridView1.Name = "RadGridView1"
        Me.RadGridView1.Size = New System.Drawing.Size(240, 150)
        Me.RadGridView1.TabIndex = 0
        Me.RadGridView1.Text = "RadGridView1"
        '
        'RadButton1
        '
        Me.RadButton1.Location = New System.Drawing.Point(137, 212)
        Me.RadButton1.Name = "RadButton1"
        Me.RadButton1.Size = New System.Drawing.Size(130, 24)
        Me.RadButton1.TabIndex = 1
        Me.RadButton1.Text = "RadButton1"
        '
        'testTelerik
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(292, 266)
        Me.Controls.Add(Me.RadButton1)
        Me.Controls.Add(Me.RadGridView1)
        Me.Name = "testTelerik"
        Me.Text = "testTelerik"
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.RadButton1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
    Friend WithEvents RadGridView1 As Telerik.WinControls.UI.RadGridView
    Friend WithEvents RadButton1 As Telerik.WinControls.UI.RadButton
End Class

Form.vb
Public Class testTelerik
    Public Sub New()
  
        ' Cet appel est requis par le concepteur.
        InitializeComponent()
  
        Dim dt As New DataTable
        dt.Columns.Add("Name", GetType(String))
        Dim dr As DataRow = dt.NewRow
        dr("Name") = "Johnson"
        dt.Rows.Add(dr)
        dr = dt.NewRow
        dr("Name") = "Peter"
        dt.Rows.Add(dr)
        dt.AcceptChanges()
        RadGridView1.DataSource = dt
    End Sub
  
  
    Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        Dim dt As DataTable = DirectCast(RadGridView1.DataSource, DataTable)
        RadGridView1.Rows(0).Cells(0).Value = "NewOne"
        RadGridView1.Rows(1).Cells(0).Value = "NewOne2"
        Dim changes As DataTable = dt.GetChanges
        MessageBox.Show(changes.Rows.Count.ToString + " change(s)")
    End Sub
End Class

I expect 2 changes whereas i have only 1..

Is this a bug ?
Is there a workaround?

Thanks,
Gerald
Irina
Top achievements
Rank 1
 answered on 15 Nov 2011
1 answer
77 views
I really like the look of the Carousel and I'm wondering if it's possible to put an image in the center (axis) around which the elements rotate.

So, when it rotates to the back, it would go behind the image and then come back out again on the other side.

My idea is to put a logo in the center. The items would never STOP behind the logo, but it would be a cool effect to have the items pass behind it. Really sells the 3D illusion.
Stefan
Telerik team
 answered on 15 Nov 2011
1 answer
192 views
Hi,    
    
        i created an sample application with rad textbox and set autoscroll property to true. i have a list box with some data wheni click the data present in the list  will be added to the textbox . when i keep on adding in this way i am unable to see the focus of the data in the text box .

 i need to scroll down to see the last added data from the list.

how to set the focus to textbox on the currently added data instead scroll down and see.

i have attached two images please refer it.

please provide me a suggestion on this.


Regards,
Selva
        
        
Ivan Petrov
Telerik team
 answered on 15 Nov 2011
4 answers
616 views
Is it possible to group the items in a dropdownlist similar to the attached image?
Stefan
Telerik team
 answered on 15 Nov 2011
3 answers
153 views
Is it possible to populate a column from a radGridView that has type RadGridMultiComboBoxColumn with a Dataset?
I want to fill each cell on event 'BeginEdit' and clear on EndEdit event
Can somebody help me?
Thanks
Stefan
Telerik team
 answered on 15 Nov 2011
1 answer
185 views
I have defined a group in a RadGridView using the following code:

Dim groupingDescriptor As New tlrkDt.GroupDescriptor
groupingDescriptor.GroupNames.Add("Period", System.ComponentModel.ListSortDirection.Ascending)
Me.rgvBids.GroupDescriptors.Add(groupingDescriptor)
  
Dim sortDescriptor As New tlrkDt.SortDescriptor
sortDescriptor.PropertyName = "Period"
Me.rgvBids.SortDescriptors.Add(sortDescriptor)

The user is able to expand and collapse the group by clicking on the arrow just before the group header. However, the user has requested to be able to expand/collapse the group by clicking on the group header itself.

How can I programmatically raise the event necessary for a RadGridView's group to expand and collapse when the user clicks on the header (not just the arrow)?

Thanks in advance for any help you may provide,

Hector

Svett
Telerik team
 answered on 15 Nov 2011
1 answer
100 views
I'm writing a desktop app that will be used on a single machine, single user (at a time).

It will need a database but the data is never likely to get beyond 100,000 records.

Any recommendations on a back end database?

I'm pretty familiar with SQL Server, so would SQL Server Express be good?

If so, how does that work? Does the SSExpress app need to be running before my app can access it? Or, does the act of accessing the data sufficient?

Thanks in advance for your help.
Svett
Telerik team
 answered on 15 Nov 2011
1 answer
120 views
I've gone through the OpenAccess videos but still don't have a really good understanding of what OA does for me that isn't built into Visual Studio 2010.

Can you point me to a discussion or documentation that explains the big benefit of OA?
Ivailo
Telerik team
 answered on 15 Nov 2011
1 answer
140 views
Hi, 

Need some special behavior on a textbox column. 
Like doing something in the textchanging event, keypress event and validation event.
And i want to be able to set a fixed length on the  text box. 
I need to do for several grids and several columns.
I know that i can do this by subscribing to events on the activeeditor -> textboxitem. But i want to subclass the GridViewTextboxColumn and do it directly, so i dont need to write the same code over and over again.

Can you please help me?

Regards
Svein Thomas
Ivan Petrov
Telerik team
 answered on 14 Nov 2011
1 answer
752 views
Ok, so our client wants to type in dates...no mouse at all.

What they would like to do is use tab instead of arrows to move between month/date/year fields. Is this possible?

Thanks,
David
Peter
Telerik team
 answered on 14 Nov 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
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?