Telerik Forums
UI for WinForms Forum
1 answer
104 views
Hi,

why does RadGridView round values if I click inside a cell in a column whose underlying data type is double?

For example, one of the cell has a value of 1,234567 from a data source. If I click in the cell to edit it, and the textbox appears, I would like to see explicitly 1,234567 and not a rounded value like 1,23.

If I set a format string for that column, that's ok. Show 1,23. But not when I want to edit the value. By the way, if I set a format string to show only two digits, I will never ever know the precise value!

How can I help this behavior?

Thanks,
Tamás
Jack
Telerik team
 answered on 08 Sep 2008
1 answer
147 views
How can I combine two datafields in 1 column in winforms.  I am trying to display FirstName and LastName in 1 column.
Nikolay
Telerik team
 answered on 08 Sep 2008
1 answer
258 views
Is there any way to have ShapedForm resizable like a standard windows form, without adding a StatusStrip to the form?  It seems the problem is that the ShapedForm has a FormBorderStyle set to None, but changing this to anything else shows the windows form titlebar.
Martin Vasilev
Telerik team
 answered on 08 Sep 2008
2 answers
84 views

I have 2+ LookupColumns on a grid, and each of these have seperate datasources.

Step 1-Open the dropdown on column1. (Data displayed is column 1's data)
Step 2-Open the dropdown on column2. (Data displayed is column 1's data)

Column 1 data is showed everywhere.

If I open column 2 first, then column 2 data is shown in all dropdowns.

// Setup CONTROLLER  
GridViewLookUpColumn controllerLookUp = new GridViewLookUpColumn("ControllerNameDrop", "ControllerName");  
controllerLookUp.HeaderText = "Controller";  
controllerLookUp.Width = 100;  
controllerLookUp.DataSource = this.controllerListBindingSource;  
controllerLookUp.ValueMember = "ControllerName";  
controllerLookUp.DisplayMember = "ControllerName";  
controllerLookUp.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;  
 
// Setup SEQUENCE  
GridViewLookUpColumn sequenceLookUp = new GridViewLookUpColumn("SequenceNameDrop", "SequenceName");  
sequenceLookUp.HeaderText = "Sequence";  
sequenceLookUp.Width = 100;  
sequenceLookUp.DataSource = this.sequenceListBindingSource;  
sequenceLookUp.ValueMember = "SequenceName";  
sequenceLookUp.DisplayMember = "SequenceName";  
sequenceLookUp.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; 

Thanks for any help!
Brandon
Top achievements
Rank 1
 answered on 05 Sep 2008
1 answer
249 views
Hello again,
I'm using RadGridView for WinForms Q2. I want to iterate through all cells and highlight text which I am searching for.
I could live with changing the background of the found cell.
The following approch produces errors.
I would be grateful for some help. Cheers Roberto

Private Sub SearchPhraseInGrid(ByVal searchphrase As String, Optional ByVal colname1 As String = "", Optional ByVal colname2 As String = "")

Dim gv As RadGridView = Me.gvMessages
Dim col As GridViewDataColumn
Dim row As GridViewRowInfo
Dim i As Integer
For Each col In gv.Columns
    
For Each row In gv.Rows
        If (row.Cellscol.FieldName).Value.ToString).Contains(searchphrase) = True Then

          i = Me.gvMessages.Rows.IndexOf(Me.gvMessages.CurrentRow)
Me
.gvMessages.CurrentRow = Me.gvMessages.Rows(i)

Me
.gvMessages.MasterGridViewTemplate.CurrentColumn = Me.gvMessages.Columns(col.Index)

Me.gvMessages.GridElement.CurrentCell.BackColor = Color.Azure
End If

Next
Next

End Sub

Nikolay
Telerik team
 answered on 05 Sep 2008
3 answers
176 views
Hi, I would like to filter my GridView programmatically.
How do I use an array of search paramters.
Let's say I have a text array with 3 or for text strings and I want to filter one or more columns for these strings.
The result should be all rows where one ore more of my search strings is contained.
Thank you for a code snippet in vb.
Cheers Roberto
Jordan
Telerik team
 answered on 05 Sep 2008
3 answers
182 views
I am not sure if I am missing something but it appears you can mark the StandardTabKey to false and have it tab between the columns like I want but it doesnt add new rows to the grid if its on the last cell of the last row. I was wondering if there was a propert to do thsi or if I have to change it to a standard tab key and use the Keydown even to implement both the features "manually"?

If that is the case and I am not missing something, I think it might be a good feature for future releases ;) . Thanks alot for any help!

Brandon
Martin Vasilev
Telerik team
 answered on 05 Sep 2008
1 answer
115 views
HI,

I'm using C# Express 2008. With registration I got the ribbon bar, but I can not use it. When I follow your documentation (Quickstarts) you mentioned to create a new form and add the RadRibbonControl from the toolbox. Unfortunately the RadRibbonBar is not present in the toolbox. What can I do?

Regards
Danilo
Martin Vasilev
Telerik team
 answered on 05 Sep 2008
1 answer
209 views
Hi,

I'm glad you introduced this feature. Is there any way how to control which columns are displayed in combobox dropdown?

Best regards,
Daniel
Nikolay
Telerik team
 answered on 05 Sep 2008
1 answer
159 views
Hi there,

I am trying to retrieve the index of the current row. The row isn't selected , it's just doubleclicked.
The code statement I found on your forum (see underneath) doesn't work for me.
int index = this.radGridView1.Rows.IndexOf( this.radGridView1.CurrentRow );

Could you pleae help me out here?
Just
Top achievements
Rank 1
 answered on 05 Sep 2008
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
Styling
Barcode
BindingNavigator
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?