Telerik Forums
UI for WinForms Forum
2 answers
84 views

Hi to all,

I have this method, I'm trying to format in backcolor only column editable.

I setted all columns with ReadOnly = True, and then I setted only particular Column ReadOnly = False

Now I would test if I format cells by Name or by ReadOnly status, but in both ways, BackColor appears Yellow only when I doubleclick into editable cell.

I would show to user the editable columns with Yellow backcolor.

How can I do?

01.Private Sub UpdateCellFormatting(ByRef e As CellFormattingEventArgs)
02. 
03.    Dim _IsEditable As Boolean = False
04. 
05.    If _SelectedItem IsNot Nothing Then
06. 
07.        If _SelectedItem.Personalizzazione = ListinoCliente.StringaListinoStandard Then
08. 
09.            If e.CellElement.ColumnInfo.FieldName = "PrezzoListino" Then
10.                _IsEditable = True
11.            End If
12. 
13.        Else
14. 
15.            If e.CellElement.ColumnInfo.FieldName = "Sconto" Then
16.                _IsEditable = True
17.            End If
18. 
19.        End If
20. 
21.    End If
22. 
23.    If _IsEditable Then
24.        e.CellElement.BackColor = Drawing.Color.Yellow
25.    Else
26.        e.CellElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local)
27.    End If
28. 
29.End Sub

Dario Concilio
Top achievements
Rank 2
 answered on 01 Jul 2016
1 answer
154 views

How can I change font of filter in radgridview? Actually I want change font of texts like "no filter", "contains","Does not contain","custom", "Null" and ...

 

Dimitar
Telerik team
 answered on 01 Jul 2016
35 answers
2.0K+ views
Hello,

I would like to make the dropdown size bigger in order to display fully all the items. (please see screenshot attached)

I've check the post on this forum but I didn't find a way to do it.
Do you have any advice to give for this?.

Thanks a lot
Regards
Ralitsa
Telerik team
 answered on 30 Jun 2016
4 answers
197 views

Hi

I am having big issues (lack of knowledge) with creating combo boxes on a gridview bound to a dataset, Can someone please point me in the right direction?

My current setup of the gridview is a SQL view that fills a dataset, which is then bound to the gridview. I have a column called 'Course', which is a column generated within the view that uses the Course_ID from the main User Table to lookup the Course name from the Course Table (see attachment). I would the Course column to be a combobox, when I auto generate the columns from the dataset it creates it as a textbox currently; and for the course names (from the course table) to be the options in the drop down . I would then like the user to see the selected options after a dataset update. Is there a way of doing this?

Thank you.

Hristo
Telerik team
 answered on 30 Jun 2016
10 answers
243 views
Hello,

Well i want to add new filters in my gridView ( on right clicking on a cell, i want to add more filter to the filters already present).
How can i proceed?

Thanks in advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jun 2016
33 answers
2.5K+ views
Hello, this is probably a really simple question, but I can't figure it out right now.  I'm using the Winforms GridView control, and I want to be able to add a new row within the gridview control.  I do have "AllowAddNewRow" set to true.  Which event is being initiated when you add a new row to the grid?  I easily was able to use the "RowDeleting" event when I delete a row, so I figure that there would be a "RowAdding" or a "RowAdded" event.  But, there wasn't.  I simply want to Add/Update/Delete rows.  It's pretty simple with the ASP.NET control with the Insert,Update,Delete command events, but I can't seem to find anything similar in the winforms control.  So, which event is used to Update a row, and which event is used to Add a new row (I want to be able to add the new row using the "click here to add new row" area), or what is the process to implement these 2 events? 

I'm using the Q3 2007 V5 version.

thanks,
monirak
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jun 2016
4 answers
220 views
How can I print a radGridView with custom painting? See the attached image.
Dimitar
Telerik team
 answered on 28 Jun 2016
6 answers
293 views
i have a little function that will loop through an active view and unselect any cells that have been selected

        private void UnselectCells()  
        {  
 
            SchedulerMonthViewElement monthView = this.schRates.SchedulerElement.ViewElement as SchedulerMonthViewElement;  
            Telerik.WinControls.RadElementCollection childrenCollection = monthView.Children[1].Children;  
 
            foreach (MonthCellElement cell in childrenCollection)  
            {  
                if (cell.Header.Selected == true)  
                {  
                    cell.Header.Selected = false;  
                }  
 
                if (childrenCollection.IndexOf(cell) == 34)  
                { break; }  
            }  
        } 

but i would like something similar to unselect any appointments but cant seem to find a way?? something like the following.......

        private void UnselectAppointments()  
        {  
            foreach (IEvent appointment in this.schRates.ActiveView.Appointments)  
            {  
                 
                if (appointment.Selected == true)  
                {  
                    appointment.Selected == false;  
                }  
            }  
        } 

Any help is greatly appreciated,

Cheers,
Craig
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2016
3 answers
547 views

I have a grid that contains a dropdown column as bellow:

GridViewComboBoxColumn type = new GridViewComboBoxColumn();
type.Name = "Type";
type.HeaderText = "Type";
type.ValueMember = "Id";
type.DisplayMember = "Type";
type.DataSource = new string[] {"A", "B", "C"};
type.DropDownStyle = RadDropDownStyle.DropDownList;
grid.Columns.Add(type);

Suppose the user adds two new rows and selects "A" from dropdown for the first row and selects "B" from dropdown for the second row. I don't know how I can save the grid and then load it later. I should say that I know how to use Linq to save data into SQL database, but I don't know how I can get the values that the user selected and how to load data into grid later. Please help me.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2016
6 answers
392 views

Hello Telerik

I would like to have an editor in a GridView for selecting one business object (DataBase Key, Name, Code (like an EAN CODE) in a collection. As The name is also considered to be an unique Key, the editor is based on a textbox which display the name of a product. The textbox should have a autocomplete feature (suggest with a dropdown) but the suggestion should be based on the whole list of product filtered by the Name or the Code.

The editor is valid only if the text is matching a product name (return the matching DataBase key for the binding) or is empty (return a nullvalue for binding).

What is the best way to reach this objectif ? Should I start from a RadDropDownListEditor, a RadTextBoxControlEditor, a RadTextBoxEditor ?

Thanks for your support

Marco
Top achievements
Rank 2
Veteran
 answered on 27 Jun 2016
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
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
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?