Telerik Forums
UI for WinForms Forum
1 answer
165 views

I use the following code to populate a GriveView control.  As you can see oBundleEntriesDAL.GetByBundleID returns an IQueryable object which is used to set GridView.DataSource. 

 

 

 

 

Private Sub PopulateBundleEntries()

 

   Dim oBundleEntriesDAL As New BundleEntriesDAL(_ContextConnection)

 

 

     gvBundleEntries.MasterGridViewTemplate.AutoGenerateColumns =

False

 

 

 

 

    gvBundleEntries.DataSource = oBundleEntriesDAL.GetByBundleID(_BundleID)

 

 

End Sub

 

 

 

 

 

 

Public Function GetByBundleID(ByVal bundleID As Integer) As IQueryable(Of BundleEntry)

 

    Dim query = From bundleEntries In _Context.BundleEntries.Include("Bundle") _

 

 

 

                        Where bundleEntries.Bundle.BUNDLE_ID = bundleID _

 

 

 

                        Select bundleEntries

 

 

 

   Return query

 

 

 

End Function

 

 

 

 

 

 

I have a form that calls PopulateBundleEntries() when the form is loaded.   Later, if I add a row to the underlying database and call PopulateBundleEntries() again the row appears in the GridView control as it should.  However, if I change some column values for an existing row in the database and call PopulateBundleEntries() again the changes in the database are not reflected in the GridView.   I have tried clearing the rows before DataSource is set but that doesn't resolve the problem.   I tried using Rows.Clear and Rows.RemoveAt but neither of those options worked.

 

 

 

What am I doing wrong?  How do I get the GridView to display column values that have CHANGED in the underlying database?

Steps to Reproduce Problem

1) Populate GridView in Forms Load Event  (call PopulateBundleEntries())
2) Add a row to database and refresh the grid to reflect the change  (call PopulateBundleEntries())
3) Change column values for existing row in the database and refesh the grid to reflect the change   (call PopulateBundleEntries())

Victor
Telerik team
 answered on 20 Jul 2009
1 answer
87 views

I use the following code to populate a GriveView control.  As you can see oBundleEntriesDAL.GetByBundleID returns an IQueryable object which is used to set GridView.DataSource.

 

 


 

Private Sub PopulateBundleEntries()

 

 

    Dim oBundleEntriesDAL As New BundleEntriesDAL(_ContextConnection)

 

    gvBundleEntries.MasterGridViewTemplate.AutoGenerateColumns =

False

 

 

 

 

    gvBundleEntries.DataSource = oBundleEntriesDAL.GetByBundleID(_BundleID)

 

End Sub

 

 

 

 

 

Public Function GetByBundleID(ByVal bundleID As Integer) As IQueryable(Of BundleEntry)

 

 

     Dim query = From bundleEntries In _Context.BundleEntries.Include("Bundle") _

 

 

                         Where bundleEntries.Bundle.BUNDLE_ID = bundleID _

 

 

                         Select bundleEntries

 

 

    Return query

 

 

End Function

 

 

I have a form that calls PopulateBundleEntries() when the form is loaded.   Later, if I add a row to the underlying database and call PopulateBundleEntries() again the row appears in the GridView control as it should.  However, if I change some column values for an existing row in the database and call PopulateBundleEntries() again the changes in the database are not reflected in the GridView.   I have tried clearing the rows before DataSource is set but that doesn't resolve the problem.   I tried using Rows.Clear and Rows.RemoveAt but neither of those options worked.

 

 

What am I doing wrong?  How do I get the GridView to display column values that have CHANGED in the underlying database?

Steps to Reproduce Problem

1) Populate GridView in Forms Load Event  (call PopulateBundleEntries())
2) Add a row to database and refresh the grid to reflect the change  (call PopulateBundleEntries())
3) Change column values for existing row in the database and refesh the grid to reflect the change   (call PopulateBundleEntries())

Victor
Telerik team
 answered on 20 Jul 2009
2 answers
310 views
Hello there!

I notise a strange thing about GridView. When I have empty grid with no data binded, it shows ,,No data to display,, text and that's fine for me. But when I add some columns in design mode, text disappears.

My point is - is it some possible way to have grid with defined columns, no data a and ,,No data to display,, text at once? Or is it way how to force this text to show?

Thanks

Tom
Tomáš
Top achievements
Rank 1
 answered on 20 Jul 2009
1 answer
52 views
Hi,

We would like to use our Q2 2007 WinForm Version in Visual Studio 2008 but it seem to have problem using it. When we want to modify a winform, all the label in the radio buttons dissapear. Is that a know issue ? Is there any fix available ?

Thanks
Nick
Telerik team
 answered on 20 Jul 2009
1 answer
153 views
Please, I would like to learn how to use the localization feature for RadGridView. I've seen samples about other controls but they are written in C. Can anybody give me a tip o tell me a link where I can find out?
Thanks a lot!!
Jack
Telerik team
 answered on 20 Jul 2009
2 answers
154 views
I'm new to Winforms & OpenAcess and want to try the hierarchical grid functionality using OpenAccess and ObjectViews. Is this possible?. I started reading the coarseware for Telerik RadControls for Winforms but it uses Datasets. Having an asp.net background I'm not too keen on Datasets. I read online help for OpenAccess ObjectViewObjectProvider but can't see how to get child collections. Maybe this should be posted in OpenAccess but if you can provide info or sample that would be great.
Axe
Top achievements
Rank 1
 answered on 18 Jul 2009
2 answers
105 views
The templates for RadForm, RadRibbonForm, ShapedForm and RadAboutBox were not installed to VS 2008 when I installed Q2 (RadControls_WinForms_2009_2_701_dev)

Any thoughts?

Regards,
Decan
Martin Vasilev
Telerik team
 answered on 17 Jul 2009
4 answers
203 views
Hi,

Is it possible to add a MultiColumnCombo to a ToolStrip Element?

Thanks,
Mike
MikeB
Top achievements
Rank 1
 answered on 17 Jul 2009
1 answer
109 views
My main page has several dynamically created tab pages, each of which contains a docking manager (NOT a  radDock), and on which are several dynamically created UserDockPanels.  Serialising the DockingManager(s) used to save the state correctly.  However, since Q2 2009 only the header <DockingTree.... > is now saved, and no internal properties about the various panels are saved.  Has anything changed in the upgrade which is preventing this serialisation? And if so, how do I now serialise the docking panels?

It will be a major change to 'upgrade' to radDock which gives me no advantages, so for the time being I need to use the Docking Manager
Julian Benkov
Telerik team
 answered on 17 Jul 2009
5 answers
190 views
Hello all!

Can anyone tell me if it is possible to do an export of a grid to Excel,maintaining all the formats, including the Column Groups?

Thanks!
Martin Vasilev
Telerik team
 answered on 17 Jul 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)
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
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?