Telerik Forums
UI for WinForms Forum
1 answer
310 views
Hello,

I need to add a new item to my data-bound RadGridView DataSource. Is our only choice to maintain a List apart from the grid and re-set the DataSource? This is simple enough to do, but was wondering if there was a more strategic way to add a single item to the already-bound grid?

Thanks you...
Stefan
Telerik team
 answered on 10 Sep 2012
1 answer
177 views
Hi,

I have a Hierarchical Rad Grid with two child templates. One of the child templates have more than 1000 records and i would like to show only 100 records for each page. Can Rad Grid support paging option for in this case. Please could you tell me if this is possible and if so how.


Regards,
Vinoth
Stefan
Telerik team
 answered on 10 Sep 2012
5 answers
263 views
Hi,

I am using Q3 2011 telerikmetroblue theme. How do I change the applicationbutton background style ?
Ivan Petrov
Telerik team
 answered on 10 Sep 2012
7 answers
239 views
I am using the below code for the fill handle like excel but i have one more issue. Please help on this.please have look the attached images. when i drag it will copy one cell value to selected range of cell but  scroll is not working remaining cell at the right side.scroll bar is not move automatically.

     Private Sub gv_CPS_MouseUp(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles gv_CPS.MouseUp

            If gv_CPS.Rows.Count > 0 Then
            If gv_CPS.SelectedCells.Count > 1 Then
                Dim objSelecteCellValue As Object = Nothing
                For Each dc As Telerik.WinControls.UI.GridViewCellInfo In gv_CPS.SelectedCells
                    If dc.IsCurrent Then
                        objSelecteCellValue = dc.Value
                    End If
                  Next
                For Each dc As Telerik.WinControls.UI.GridViewCellInfo In gv_CPS.SelectedCells
                    If Not dc.IsCurrent Then
                        If Not dc.[ReadOnly] Then
                            If Validate(Convert.ToString(objSelecteCellValue)) Then
                                dc.Value = objSelecteCellValue
                            Else
                                Exit For
                            End If
                        End If
                    End If
                Next
            End If
        End If
    End Sub

thanks in advance
Svett
Telerik team
 answered on 10 Sep 2012
1 answer
214 views
How can I get the list of colors for the default palettes ?
Boryana
Telerik team
 answered on 10 Sep 2012
1 answer
122 views
Using Hierarchical grid how can we get or set the width of border around child view template?

Attached is a sample

Thanks in advance


Stefan
Telerik team
 answered on 10 Sep 2012
1 answer
164 views
Hi Telerik team,

I added a CommandBarDropDownButton to a CommandBar. Then I set properties of the button like following:
DrawText = True
Text = &New
UseMnemonic = True
However, the N character was not underlined and nothing happened when Alt + N pressed. How to solve this?

Regards
Ivan Todorov
Telerik team
 answered on 10 Sep 2012
1 answer
99 views
Hi,

how kann i add lines of text with different background colors to the radrichtextbox ?

Stefan
Telerik team
 answered on 10 Sep 2012
5 answers
501 views
Hello,

I have two questions. I've created an unbound combo box column like this:

            const string aceptar = "Aceptar";
            GridViewComboBoxColumn aceptarColumn = new GridViewComboBoxColumn(aceptar, aceptar);
            aceptarColumn.HeaderText = aceptar;
            aceptarColumn.Width = 120;            
            aceptarColumn.DataType = typeof(String);
            aceptarColumn.DataSource = new String[] { "Sí", "No", "No lo sé" };
            gridViewPedidos.Columns.Add(aceptarColumn);

1) How can I set the default value to "No lo sé" (the 3rd element?) By defoult the combos are empty.

2) Is it possible to achieve this at design time? I mean, without having to write none of the above lines of code?

Best regards,

Gonzalo
Nikolay
Telerik team
 answered on 10 Sep 2012
2 answers
338 views

In winforms, I try to merge cell using cell border style.
There are some problem in cell border color.

attached file is screen shot.
plz help me

        private void BtnDel_Click(object sender, EventArgs e)
        {
            MergeCell(GvMain, new int[] { 1, 2, 3, 4, 5 });
        }

        private void MergeCell(RadGridView gv, int [] idx)
        {
            GridViewRowInfo Prev = null;
           
            foreach (GridViewRowInfo item in gv.Rows)
            {
                if (Prev != null)
                {
                    string s1 = string.Empty;
                    string s2 = string.Empty;

                    foreach (int i in idx)
                    {
                        GridViewCellInfo c1 = Prev.Cells[i];
                        GridViewCellInfo c2 = item.Cells[i];

                        //s1 += "|" + (c1 != null && c1.Value != null ? c1.Value.ToString() : string.Empty);
                        //s2 += "|" + (c2 != null && c2.Value != null ? c2.Value.ToString() : string.Empty);
                        s1 = (c1 != null && c1.Value != null ? c1.Value.ToString() : string.Empty);
                        s2 = (c2 != null && c2.Value != null ? c2.Value.ToString() : string.Empty);

                        if (s1 == s2)
                        {
                            //c2.Value = string.Empty;
                            c2.Style.ForeColor = Color.Transparent;

                            //c2.Style.DrawBorder = true;
                            c2.Style.CustomizeBorder = true;
                            c2.Style.BorderTopWidth = 0;
                            //c2.Style.BorderTopColor = Color.Transparent;
                        }
                        else
                        {
                            //c2.Style.CustomizeBorder = false;
                            Prev = item;

                            break;
                        }
                    }
                }
                else
                {
                    Prev = item;
                }
            }
        }

HyunBae
Top achievements
Rank 1
 answered on 08 Sep 2012
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?