Telerik Forums
UI for WinForms Forum
1 answer
140 views
Hi everybody.
I have a question. In the code below I'm trying replace cells with a specific value with an empty string, but this step changes also the values in the database table for corresponding cells.
 
GridViewRowCollection rowCollection = someGridView.Rows;
foreach (GridViewRowInfo info in rowCollection)
{
    if (info.Cells["someColumn"].Value.ToString() == "someValue")
    {
         info.Cells["someColumn"].Value = "";
    }
}


How can I avoid such a behavior, without  creating another foreach loop in order to restore previous values?
Thanks in advance.
Frank.
Jack
Telerik team
 answered on 25 Mar 2009
3 answers
386 views
Hi,

I add an help provider to the form (inherited from radform) and set some form properties as below
FormBorderStyle = FixedToolWindow
HelpButton=True
MinimizeBox = False
MaximizeBox=False

But i can not see the help button at the title bar. I am not sure if anybody see this problem or i made something wrong.

Regards

Ahmet HOSO
Victor
Telerik team
 answered on 25 Mar 2009
1 answer
187 views
When I load a dataset into the gridview I would like to set the backcolor of the expander box if there is child rows. Is it possible if so then how do I grab box to set the backcolor.
Jack
Telerik team
 answered on 25 Mar 2009
3 answers
167 views
Hi,

I add a shapedform to my project. And add a radtitlebar to the form. After running the project i can resize from titlebar but i can not resize from another place. 

Regards

Ahmet HOSO
Victor
Telerik team
 answered on 25 Mar 2009
1 answer
145 views
I would like to set the backcolor of a row based on data within a dataset when I set the dataset then I want to everything to work as normal. The only way I can figure out how to do it  is use the "RowFormatting" but everytime you move your mouse over a row the "RowFormatting" function gets called and it does the redraw like it is a brand new row. Is there anything like a rowinitialize event. or how do I set the hover color

Jack
Telerik team
 answered on 25 Mar 2009
1 answer
185 views
Hello,

When there is no item selected then the dropdown should display the alternate text i.e."Select Name" (or any other). On clicking the dropdown that text should disappear or appears when the item is not selected in Light color with italic font style.

Thank you,

Ajay
Victor
Telerik team
 answered on 25 Mar 2009
1 answer
80 views
I have a RadComboBox on my WinForm (using the latest 2009 release), whose DataSource I am setting to an Array of Objects, similar to...

BankInfo[] infos = GetBankInfos();
bankInfoCombo.DataSource = infos;

I also have a BindingSource on the form that takes a List of Objects, similar to...

List<Bank> banks = GetBanks();
bankBindingSource.DataSource = banks;

I am using this BindingSource to bind the controls on the form to the Bank objects properties, of which one of them is ReturnProcessor of Type BankInfo.

this.bankInfoCombo.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bankBindingSource, "ReturnProcessor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));

When using a WinForm ComboBox, if I choose not to set the DisplayMember or ValueMember, the ComboBox will call ToString() on the Array and use that as the DisplayMember and the Object as the ValueMember.

The behavior I am getting out of the RadComboBox however, is that if I do not set the ValueMember, nor the DisplayMember it will still ToString() the object, but the SelectedValue will always be null. What occurs, because of this behavior, is that my Databound object ReturnProcessor value is always null, even after a Value is selected from the ComboBox.

The Work around that I have found is to Sub Class the object with a new Property of ReturnProcessorObjectID of Type long. And set the ComboBox DisplayMember to BankName and ValueMember to ObjectID. Then I bind the ComboBox to ReturnProcessorObjectID, instead of the Real ReturnProcessor object.

 

 

 

 

Deyan
Telerik team
 answered on 23 Mar 2009
1 answer
142 views
Hi,

I need to change the color of ColumnGroup Header of the GridView Control.

Thanks

Ajay
Nick
Telerik team
 answered on 23 Mar 2009
3 answers
180 views
Hi,

I was expecting the Validating or Validation event to fire after committing an edit of a node. Currently calling radTreeView BeginEdit() function to initiate editing and commit changes using Enter.

I need to validate the name and text of the edited tree node before accepting the change.  Is there something I need to enable for the event to fire?  Or should I be using a different event?

Regards,
Brad
Jordan
Telerik team
 answered on 23 Mar 2009
3 answers
121 views
Im loading some dummy nodes into a tree when the form loads
Im using the NodeExpand event with LoadOnDemand = true
When this event code is finished, my tree background is gone and the the other nodes loose their +/- icons. 

What should I check ?

Boyko Markov
Telerik team
 answered on 23 Mar 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
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?