Telerik Forums
UI for WinForms Forum
3 answers
167 views
sorry, I can not speak english very well.

why this error?

this my code :

private void gridNegara_CellClick(object sender, GridViewCellEventArgs e)
{
            int i = gridNegara.CurrentRow.Index;
            txtKodeNeg.Text = (gridNegara.Rows[i].Cells[0].Value).ToString();
            txtNamaNeg.Text = (gridNegara.Rows[i].Cells[1].Value).ToString();
            txtIbuKotaNeg.Text = (gridNegara.Rows[i].Cells[2].Value).ToString();
}

gridNegara = RadGridView
txtKodeNeg, txtNamaNeg, txtIbuKotaNeg = RadTextBox

when running visual studio (F5), an error message appears:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


It happens when I click on FilteringRow

thanks for your attention.
Emanuel Varga
Top achievements
Rank 1
 answered on 26 Dec 2010
3 answers
366 views
Hi there, 
I just got an problem with raddatagridview, i want to delete some rows...how i could do that..??
fyi i'm use mysql for the database....
thanks for your help...
Emanuel Varga
Top achievements
Rank 1
 answered on 26 Dec 2010
2 answers
357 views
Hello and merry X-mas to all.
I have following problem which I cannot solve by my own.
I have an empty GridView (not bound to any data source).
I would like to set the Grid in edit mode automatically when the user enters the grid by the tab key.

So I tried something like this, which does not work.

Private Sub RadGriedView1_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGriedView1.Enter
            Dim currCell As GridViewCellInfo = Me.rgv_Certificates.Rows(0).Cells(1) 'GridCellElement
            currCell.IsSelected = True
            currCell.BeginEdit()
End Sub

I guess this would work if there are already rows with data. But my grid is empty.
How can I programmatically activate the edit mode, starting with editing the first cell in the newly added row when the user enters the grid.
Without using the mouse! Only with tab key.

Thanks for your help
Roberto
Roberto Wenzel
Top achievements
Rank 2
 answered on 26 Dec 2010
3 answers
209 views
Hi , sorry for my bad english.

I have use multiple gird in my main form (Entity framework , databindingsource) .
i have refresh button on main form and i want refresh all grid data .(data changed on other form)


what is a best solution ?


 

Emanuel Varga
Top achievements
Rank 1
 answered on 26 Dec 2010
3 answers
268 views
Hi,

we are in a process of upgrading telerik dlls periodically.

prevoiusly we are using 2009.3.9.1203 version dlls.
here we are able to add check box in the header of a RadGridView using "CheckBoxHeaderCell" class which is given in the telerik forums.
here we are not creating a checkbox column and adding it to RadGridView instead we are are getting bool values from DB and binding them to RadGridView and we are just adding Checkbox in the Header.

when we upgrade the telerik dlls to 2010.2.10.806 version we are not able to add check box as we did above.

i found some sample code in telerik forums which gives code to add the checkBox column with header.

Is it possible to add check box in the header with out creating the entire check box column
here my check box column is displayed with the DB values and i just want to add check box in the header and handle the event.

if possible please give sample code.


Thank you,
Shashi
Emanuel Varga
Top achievements
Rank 1
 answered on 25 Dec 2010
3 answers
107 views
ok here is what I want to do, and I can't get it to work right.  I have set up a few tabs.  then I want to hide the tabs with

Telerik.WinControls.

 

ElementVisibility.Collapsed;
then I want to show the ribbon tab based on code.  No matter what I try I cann't seem to get it to work.

Thanks for the help

 umm i tried to change the title to Tab but it wont let me :P

 

Peter
Telerik team
 answered on 23 Dec 2010
3 answers
93 views
Hi,

how could I make a grid automatically create a ComboBoxColumn by giving it a BindingList of custom objects? The grid only detects decimal and datetime columns corresponding to object's properties of the same type, but for the remaining properties it creates TextBoxColumns. This is correct because these properties are string but the column's type should be ComboBoxColumn. I'm guessing if there's a way to change the column's type dinamically, but the explicit cast produces an exception.

Greetings,
Giovanni

Richard Slade
Top achievements
Rank 2
 answered on 23 Dec 2010
1 answer
76 views
Hi,
I need to drop a simple plain text from a textbox into a Rad Treeview.
I just read the forum, I'm mixing OLE Drag & Drop and RadTreeView Drag & Drop. The Events seems to be right and they seems to work fine.
But I'm just having a problem with the Visual Indicators of the treeview.

When I drop a regular node inside the treeview, I can see that visual indicators (the target node is highlighted, I can see a line of dots showing the direction above or below the target node, the "forbidden" cursor, etc).
And when I actually try to drop a simple text inside the treeview, I don't see any of those stuff.
I need the same visual behavior when dropping a simple text. I need to see the indicators and I don't know how to activate them.

I will appretiate the help.

Thanks!

Gustavo
Julian Benkov
Telerik team
 answered on 23 Dec 2010
2 answers
148 views
Hi I have setup a raddock and have 7 toolwindows setup in autohide along the top. What I would like to do is be able to click on the tab and have the toolwindow dock into it's dock position, I can do it via a button event with the Dockstate.Docked command but would like to do it on the tab instead. I am using VB.NET Any help would be greatly appreciated thanks.
Brahim
Top achievements
Rank 1
 answered on 23 Dec 2010
11 answers
95 views
1. I just installed Telerik Q3 2009 WinForms (2009.3.9.1103) over Q2 2009 (2009.2.9.729) and it's now requiring you press the Alt Key twice before the RadMenu will activate.

2. I noticed your Q3 2009 Release Notes for RadMenu says "RadMenu can now be highlighted via system keys (alt and F10)".  It was already (in Q2 2009) allowing itself to be "highlighted" via the Alt key for me and I had nothing explicitly implemented (i.e. via any KeyDown Events) to make that happen.  Am I missing something?

Telerik WinForms 2009Q3 (2009.3.9.1103), VB, VS 2005 (v8.0.50727.762 SP.050727-7600), .Net 2.0 (2.0.50727), XP SP3, 3GB, 2.99GHZ, Core2Duo.

Nikolay
Telerik team
 answered on 22 Dec 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)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?