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

I have a gridview with datasource defined and I just want only some of the columns to be visible. But when I bind data using DataSource property, my design time column visibility settings are lost and all columns are shown.

I'm using Q2 2009 trial version, but in Q1 everything works fine...

Thanks for solution.

PK
Julian Benkov
Telerik team
 answered on 09 Jul 2009
2 answers
212 views
Hi,
I am using RadGridview control. I have set EnableAlternatingRowColour =true. It's showing alternate rows in different colour. I want to show my alternate rows in Red and Blue colours. How can I do this. 
Sunil
Top achievements
Rank 1
 answered on 09 Jul 2009
1 answer
104 views
If I create simple class that extends the RadGridView:

    public class MyGrid : RadGridView
    {
    }

If I put this grid on my form, the grid just renders text, the column headers have no background, either do the cells.  How can I subclass the RadGridView and still have the default styling apply?


Gary
Top achievements
Rank 1
 answered on 08 Jul 2009
4 answers
174 views
Hi,

I'm a beginner with the gridview. How can I change the backcolor of the grid?
radgridview1.backcolor = Color.Yellow doesn't work :-(

I found in the themebuilder the property: GridTableBodyElement. But I did find a snippet, how can I use it.

Greetings

Konrad
Konrad Radinger
Top achievements
Rank 1
 answered on 08 Jul 2009
2 answers
283 views
Hello,

I'm getting an index out of range error on a scroll-to command that doesn't seem to make sense. In the block of code just before the ScrollToRow command, I am setting the datasource equal to null, and then re-initializing the datasource. Next, I am checking if the number of rows exceeds the number that can be displayed, and if so, I wish to scroll to the bottom to display only the last rows. Here is the code:

                        grdRecords.DataSource = objRecordList; 
                        AlignRecordGrid(); 
                        int iVisibleRows = grdRecords.GridElement.RowsPerPage; 
                         
                        if (grdRecords.Rows.Count > iVisibleRows) 
                        { 
                            grdRecords.GridElement.ScrollToRow(objRecordList.Count - iVisibleRows + 3); 
                            //grdRecords.FirstDisplayedScrollingRowIndex = objRecordList.Count - iVisibleRows + 3; 
                        } 

I run into an error here every time saying that the index is out of range. This is strange to me since in the example, the number of rows is 21 and the rows per page is 14. When the gridview is a windows gridview, the commented out line did the trick just fine.

Any help would be appreciated!

Thanks!
Jeremy
Jeremy Murtishaw
Top achievements
Rank 1
 answered on 08 Jul 2009
1 answer
97 views
Since I upgraded to 2009Q2, the context menu does no longer show up on a RadForm derived form in VS2008.
regards
Erwin
Deyan
Telerik team
 answered on 08 Jul 2009
1 answer
157 views
Hi,
I am using winforms gridview, when grid is selected & i press the TAB key, next row of grid gets selected.
how can i acheive lostfocus of grid and setfoucs of other control on TAB key press?
Jack
Telerik team
 answered on 08 Jul 2009
4 answers
109 views
Q2 throws an exception when I try to add 2 RadButtons with the same name to a RadPanel.Controls Collection.
This was possible in Q1, had to add code to generate uniqe names.

Not documented AFAIK. Please update your documentation with all the breaking changes introduced in 2009 Q2.

Kind regards
Erwin
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Jul 2009
2 answers
321 views
Hello,
I am using the latest version of the controls and I'd like to be able to set the text of a MultiColumn Combo Box to read only.

'm using the combo for a multi column selection so the users can see more information on a row, but the text should be read only. In your demo also it is possible to freely type into the text area.. I've had to get round it like this.. which is hardly elegant..

 

Private Sub ComboVatRates_TextChanged(ByVal sender As System.Object, _

 

 

ByVal e As System.EventArgs) Handles ComboVatRates.TextChanged

 

 

Dim rowInfo As GridViewRowInfo = DirectCast(Me.ComboVatRates.EditorControl, RadGridView).SelectedRows(0)

 

 

If Not rowInfo Is Nothing Then

 

 

Me.ComboVatRates.Text = rowInfo.Cells(1).Value.ToString()

 

 

End If

 

 

End Sub

 

Nikolay
Telerik team
 answered on 08 Jul 2009
3 answers
198 views

Hello Telerik,

I am using RadMenu in my winform application and want to use hotkeys (e.g. Alt + A) for them. I try use the CommandBinding property for the menu items and use it as described on the support forum.

<admin>Obsolete Command Binding Link</admin>

The hotkey for a specific menu is only working when the mouse pointer is above it and is not working from any where else in the form (when mouse is not over it). So could you please help me in this regard and provide me with an example code for VB in VS2005.


Regards,

Haroon
Nikolay
Telerik team
 answered on 08 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)
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?