Telerik Forums
UI for WinForms Forum
3 answers
146 views
Hi,

Having spent way too long on this, what has to be done to switch autogenerated columns OFF on the GridView?  The property seems to be getting ignored, whether I set it in codebehind or in the propertymanager.

I've defined my columns through the collection in Vis Studio, and then call

SqlConnection cn = new SqlConnection(feedsSvr);
            cn.Open();
            SqlCommand cmd = new SqlCommand("ASP_GetDeltas", cn);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@FeedGUID", feedGUID);
            SqlDataReader dr = cmd.ExecuteReader();
            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false;
            radGridView1.MasterGridViewTemplate.LoadFrom(dr);

Thanks for your help!!

Paul
Julian Benkov
Telerik team
 answered on 07 Jul 2010
4 answers
257 views
Do not work (?)
Jack
Telerik team
 answered on 07 Jul 2010
2 answers
122 views
How can I retrieve the SQL Server Auto Increment ID when adding a record to the grid when binding source is a Table Data Adapter?

Anyone?

T.I.A.
Julian Benkov
Telerik team
 answered on 07 Jul 2010
9 answers
424 views

I have setup a Hierarchical Grid programmatically basically following the example in the Documentation. Now I need to update some Cells in the ChildGridView programmatically and assumed I can update the cell info with the following:


'-- The ChildGridView has already been populated with data  
Dim cTemplate As GridViewTemplate = GridViewPricing.MasterGridViewTemplate.ChildGridViewTemplates(0)  
 
'The following throws an error : 
'Object reference not set to an instance of an object.  
cTemplate.Rows(0).Cells(1).Value="somedata"    
 
 
The above throws the Object reference not set to an instance of an object error.  In fact accessing any of the Cells methods or properties throws the Object Not set to an instance of an object. 

Any help greatly appreicated.
Julian Benkov
Telerik team
 answered on 07 Jul 2010
1 answer
167 views
Hi,
I'm evaluating your WinForms control suite and was wondering if I can build an application where the user can choose between having a ribbon or a menu/toolbar application window. If so, how can I switch between those modes programmatically? Some other control vendors just require to drop the ribbon control onto a standard form to make it a ribbon form. When I then hide the ribbon control and show the menu/toolbar, I'm basically back in standard (menu/toolbar) mode again. Is something like that possible using Telerik?
Stefan
Telerik team
 answered on 06 Jul 2010
2 answers
642 views
I have been looking all weekend for this solution but cant seem to figure it out.  I have a sql database, very small and simple.  It is basically is a support database for taking service requests.  (just a training for myself)  I have a database view that i'm using to bring the information into my winform project.

I'm trying to figure out the best way to filter a gridview using the dropdown.

1.  Is it possible to populate a RadDropDownButton with the Technician Name items from a sql database and then filter the records in a gridview?
2. Is it better to use a combobox although the dropdown seems to look cooler?

So I have a radform, drop a raddropdown and a gridview on the form... I can get the gridview to display records, I can get a combobox to show the technicians but I can only get the dropdown to display the first technician.

I have not been able to get any of the dropdowns or combobox's to filter the gridview.. anybody have any simple solutions that I may be missing? 

I have tried several different ways, one such as this:

Public Class RadForm1  
 
     
 
    Private Sub RadForm1_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load  
        'TODO: This line of code loads data into the 'WODataset.WorkOrderMain' table. You can move, or remove it, as needed.  
        Me.WorkOrderMainTableAdapter.Fill(Me.WODataset.WorkOrderMain)  
 
        RadDropDownButton1.Items.Add(WODataset.WorkOrderMain.techFullNameColumn)  
        RadComboBox1.Items.Add(WODataset.WorkOrderMain.techFullNameColumn)  
 
    End Sub 
End Class 
Both of these do not work for populating the fields...

Please excuse my noviceness... :)

 
Jack
Telerik team
 answered on 06 Jul 2010
1 answer
182 views
Hi,
If I wrap a header text for the columns in my gridview then the text gets cuts.
How to avoid this ?

Best regards,
Sid
Martin Vasilev
Telerik team
 answered on 06 Jul 2010
1 answer
212 views
Hello;
I am using   WinForms Q3 2008 SP2 RadGridView. I want to change language RadGridView's menu. I want to use Turkish. How can change language?
Svett
Telerik team
 answered on 06 Jul 2010
1 answer
172 views
Hi,

I am having problems with setting the BackColor of the RadTabStrip Control.   I have tried setting the BackColor of the control and it has no effect on a standard window.

I am trying to use this on a RadWindow.

I have tried Editing the UI Elements too and this has had little effect. 

Do I need to create a Theme just to change the BackColor of the tab strip?  If so when I create the theme in the new editor it seems to be totally blank and default (almost like a wire frame)  Seems to be totally different to how the 2009 build works.

Please can someone offer some assistance.  I would like to make the general back colour of the control and tabs white.

Kind regards
Neil
Stefan
Telerik team
 answered on 06 Jul 2010
3 answers
237 views

Hello,

there is a strange problem adding some RadContextMenuItems to the context menu from a GridView.

It works fine to catch the ContextMenuOpening event and add the Items (3 Separators and 4 MenuItems in this case) from a RadContextMenu on the form by the following code snippet:

 
        Private Sub DataGridViewMain_ContextMenuOpening(ByVal sender As System.ObjectByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles DataGridViewMain.ContextMenuOpening  
            Try 
                e.ContextMenu.Items.AddRange(RadContextMenuGridView.Items)  
            Catch 
            End Try 
        End Sub 
 

But sometimes after 3, sometimes after 10 or later tries the AddRange throws an exception:
    "Das angegebene Element kann nicht entfernt werden, da es nicht in der Auflistung gefunden wurde."

The context menu shows without the custom added items. The problem is not the contextmenu but the items collection that should be added. It seems that it is blocked by the old context menu instance and not released properly.
I could not workaround this. I have to create a new instance of the form to get it work again.
Is there a fix for this or is it possible to duplicate the Item Collection so that there is no blocking?

Thank you!

Bernd


Bernd Mueller
Top achievements
Rank 1
 answered on 06 Jul 2010
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?