Telerik Forums
UI for WinForms Forum
4 answers
164 views

Hello! I have following code:

this.systemPointsGridView.MasterTemplate.DataSource = this.systemTableBindingSource;
...
this.systemTableBindingSource.DataMember = "SystemTable";
this.systemTableBindingSource.DataSource = this.projectDataSet;
...

projectDataSet is filling somewhere and then in order the results to be displayed
I have to write:
systemTableBindingSource.DataSource = projectDataSet;

So, the question is why do I have to reassign dataset to BindingSource datasource property? I suppose that it should be done automatically, or there should be method that I must call on binding source in order to populate control with data.

It seems that I missed something in databinding mechanism...

Thanks in advance.

Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 2011
8 answers
267 views
Hi, I was wondering if I could add a new button to the footer of a RadCalendar?
Ivan Todorov
Telerik team
 answered on 16 Feb 2011
4 answers
401 views
Hi,

I want to use RadListControl to display the logs of the ongoing large process in background thread. I will be adding hundred thousands of items into the control in main thread.

But to make everything simple, before adding item to the control, I am checking if the item count is more than 100, if it is more than 100 I am removing the top most Item, then only I am adding the new item. After adding I am scrolling the listbox control down to the last item.

This process may run for more than 10 hrs and my application may not respond as it is dealing with too much of items every seconds.

I am looking for most efficeint way to do this as with listboxcontrol after running for about 1 hr application is not able to handle the number of items and not responding.

I am using following code: 

            RadListDataItem newItem = new RadListDataItem(message);
            radListControl1.Items.Add(newItem);
            if (radListControl1.Items.Count > 100)
            {
                radListControl1.Items.RemoveAt(0);              
            }           
            radListControl1.ScrollToItem(newItem);

But if I am using windows listboxcontrol I am able to do without any problem.

            listBox1.Items.Add(message);

            if (listBox1.Items.Count > 100)
            {
                listBox1.Items.RemoveAt(0);               
            }
            listBox1.SelectedIndex = listBox1.Items.Count - 1;
            listBox1.ClearSelected();   

I want to use RadListControl because it can handle html syntax.

Please suggest something on this. I can even switch to another control which supports html code.

regards,

Bibek Dawadi

Ivan Petrov
Telerik team
 answered on 16 Feb 2011
3 answers
287 views
I have a grid with a custom filter, like the sample in Gridview Custom filtering. How can I select the first row in the grid after the custom filter is applied?

I've tried this code, but didn't work:

Private Sub txtBuscar_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtBuscar.TextChanged
        wFirstVisibleRow = -1
        Me.gridArticulos.MasterTemplate.Refresh()
        If wFirstVisibleRow > 0 Then
            Dim wposcode As String = gridArticulos.MasterTemplate.Rows(wFirstVisibleRow).Cells(0).Value.ToString
            If wposcode <> "" Then
                Me.ArticulosSGFBindingSource.Position = Me.ArticulosSGFBindingSource.Find("CODIGO", wposcode)
            End If
        End If
  
    End Sub
  
Private Sub gridArticulos_CustomFiltering(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCustomFilteringEventArgs) Handles gridArticulos.CustomFiltering
        If String.IsNullOrEmpty(Me.txtBuscar.Text) Then
            e.Visible = True
            For i As Integer = 0 To Me.gridArticulos.ColumnCount - 1
                e.Row.Cells(i).Style.Reset()
                e.Row.InvalidateRow()
            Next
            Return
        End If
        e.Visible = False
        For i As Integer = 0 To Me.gridArticulos.ColumnCount - 1
            If i <> 2 Then
                Dim text As String = e.Row.Cells(i).Value.ToString()
                If text.IndexOf(Me.txtBuscar.Text, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 Then
                    e.Visible = True
                    If wFirstVisibleRow = -1 Then
                        wFirstVisibleRow = e.Row.Index
                    End If
                    e.Row.Cells(i).Style.CustomizeFill = True
                    e.Row.Cells(i).Style.DrawFill = True
                    e.Row.Cells(i).Style.BackColor = Color.FromArgb(201, 252, 254)
  
                Else
                    e.Row.Cells(i).Style.Reset()
                    e.Row.InvalidateRow()
                End If
            End If
  
        Next
  
    End Sub

Thanks in advance
Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 2011
8 answers
487 views
Hello,

I was hoping someone could shed some light on this situation.

I have a RadPageView with a RadListControl inside.  The list control is populated from a sql table that contains potential 'status' setting for a recordset that is filling a RadGridView also on the same page.  I have the list control MultiSelect set to 'Simple'. The idea is a fast, multi-select filter for the radgrid.

So as with most issues, 90% works great.  Using RadListControl1.SelectedIndexChanged as my event handler I am able to create a filter for the radgrid using OR to allow filtering for multiple status at one time.   If the user clicks status 'a' then status 'b' then status 'c' the Radgrid filters and only shows 'A',then adds 'B',then 'C'.  Perfect! (status LIKE 'A' or status LIKE 'B' or status LIKE 'C' is  the expression I end up with, again perfect)

Here is where is problem lies.  When a user un-selects items in the RadListControl in reverse order (Add, A,B,C then Remove C,B,A) things seem to work, the event handler fires properly.  However, if the user un-selects items in any other order the event wont fire (Add A,B,C  then unselect A,B,C).  I'm guessing this is by design.  Although I have a loop with a message box showing the RadLIstControl items each time the event fires (for debugging).  I don't know if this might have some unseen effect on the control.

So I am wondering, is there a solution for this situation, either using the RadListControl (it's fast) or would there be a better method, I just can't seem to get my head around this one.  My code is in VB if that matters.

Thanks in advance!

Dean.

Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 2011
10 answers
763 views
I'm trying to reload all the items in a RadDropDown box after something new gets added to the database. I have it set up right now that an event gets triggered when an item is added into the database, it calls the Rebind() method on the RadDropDownList, but nothing seems to happening. What should I do to get the RadDropDownList to reload?
Kamal
Top achievements
Rank 1
 answered on 16 Feb 2011
5 answers
309 views
Hello
    I have  a  question about  focus on control  TextBox, DropDownList etc.
How is the best solution for highlight control when got focus? Focus primitive, maybe some themes support this functionallity?

Please some example for solution. 

Thanks so much.
Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
1 answer
530 views
Hi There,

I am using Rad Ribbon bar and have a dropdownbutton that I am dynamically creating the items for from a dataset. My problem is I can not seem to create an event handler for the selection as it appears that item.click does not seem to exist. here is my code:

For Each row As DataRow In ds_sn.Tables("sn_tbl_groups").Rows
    Dim tag As New radmenuitem(row(1).ToString)
    tag.CheckOnClick = New EventHandler(AddressOf GroupMenuclick)
    Me.btn_SpecificGroup.Items.Add(tag)
Next

can some one point me to what event i should see in order to create the handler for this?

many thanks!

Jonathan
Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
5 answers
259 views
Hi , I try to use the 2009 Q2 RadDock control.
Is it possible to create a layout witch have all theses properties:
1. Have a unique center window or panel witch cannot be closed
2. Where the others docking windows won't dock on top / behind the center window but only around it.
3. the center window have no visible docking header.

Nikolay
Telerik team
 answered on 15 Feb 2011
8 answers
352 views

Hello,

I use:

  • Q3 2010 version 2010.3.10.1215
  • Windows 7, Visual Studio 2010, .net framework 4

I try to evaluate RadGridView but with simple file explorer (hierarchy, self reference, unbound mode, load on demand/expansion) and I get exceptions.

 

I isolate problems to simple file explorer. Cound You help me to solve these problems ?

1. Add rows in begin/end section after  expanded event.

Is it necessary to add rows in statements begin/end ?

If I do it, I get exception


System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls
  StackTrace:
       at Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
       at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.RadObject.OnTwoWayBoundPropertyChanged(PropertyBinding binding, Object newValue)
       at Telerik.WinControls.PropertyBinding.UpdateSourceProperty(Object newValue)
       at Telerik.WinControls.RadPropertyValue.SetLocalValue(Object value)
       at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.UI.GridExpanderItem.set_Expanded(Boolean value)
       at Telerik.WinControls.UI.GridExpanderItem.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
       at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.UI.RadGridView.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at TelerikRadControlsWinFormsPrototype.Program.Main() in D:\rdawidziuk\src\OSS 12.2\Support\Prototypes\Technology\Presentation\TelerikRadControlsWinFormsPrototype\Program.cs:line 19
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

2. During keyboard manipulate:
    1. enter - expand
    1. selected cell chage with arrow keys

 i get exception. It takes some time, but after minutes I always get this exception:

 

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls.GridView
  StackTrace:
       at Telerik.WinControls.UI.GridTraverser.StepInHierarchyBackward()
       at Telerik.WinControls.UI.GridTraverser.MovePreviousCore()
       at Telerik.WinControls.UI.GridTraverser.MovePrevious()
       at Telerik.WinControls.UI.BaseGridNavigator.MoveToNextRow(Int32 step, Boolean moveNextDirection)
       at Telerik.WinControls.UI.BaseGridNavigator.SelectPreviousColumn()
       at Telerik.WinControls.UI.GridRowBehavior.ProcessLeftKey(KeyEventArgs keys)
       at Telerik.WinControls.UI.GridRowBehavior.ProcessKey(KeyEventArgs keys)
       at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)
       at Telerik.WinControls.UI.BaseGridBehavior.ProcessKeyDown(KeyEventArgs keys)
       at Telerik.WinControls.UI.RadGridView.OnKeyDown(KeyEventArgs e)
       at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
       at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at TelerikRadControlsWinFormsPrototype.Program.Main() in D:\rdawidziuk\src\OSS 12.2\Support\Prototypes\Technology\Presentation\TelerikRadControlsWinFormsPrototype\Program.cs:line 19
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

3. After column order change I get strange look  columnorderchange.png

My file explorer code:

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
using System.IO;
 
namespace TelerikRadControlsWinFormsPrototype
{
    public partial class MyFileSystemExplorer : Telerik.WinControls.UI.RadForm
    {
        private int idCounter = 0;
 
        public MyFileSystemExplorer()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            // grid initialize
            this.radGridView1.CellFormatting += new CellFormattingEventHandler(radGridView1_CellFormatting);
            this.radGridView1.ChildViewExpanded += new ChildViewExpandedEventHandler(radGridView1_ChildViewExpanded);
            this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "ID", "ParentID");
            this.radGridView1.ImageList = this.imageList1;
            this.radGridView1.TableElement.RowHeight = 35;
            // colums
            GridViewDataColumn idCol = new GridViewDecimalColumn();
            idCol.DataType = typeof(int);
            idCol.Name = "ID";
            idCol.ReadOnly = true;
            idCol.IsVisible = false;
            this.radGridView1.Columns.Add(idCol);
 
            GridViewDataColumn parentIdCol = new GridViewDecimalColumn();
            parentIdCol.DataType = typeof(int);
            parentIdCol.Name = "ParentID";
            parentIdCol.ReadOnly = true;
            parentIdCol.IsVisible = false;
            this.radGridView1.Columns.Add(parentIdCol);
 
            GridViewDataColumn nameCol = new GridViewTextBoxColumn();
            nameCol.DataType = typeof(string);
            nameCol.Name = "Name";
            nameCol.HeaderText = "Name";
            nameCol.ReadOnly = true;
            this.radGridView1.Columns.Add(nameCol);
 
            GridViewDataColumn modiffCol = new GridViewTextBoxColumn();
            modiffCol.DataType = typeof(DateTime);
            modiffCol.Name = "Creation";
            modiffCol.HeaderText = "Creation";
            modiffCol.ReadOnly = true;
            this.radGridView1.Columns.Add(modiffCol);
 
            // root rows
            List<FileSystemInfoWrp> drivesInfo = new List<FileSystemInfoWrp>();
            foreach (DriveInfo di in DriveInfo.GetDrives())
            {
                drivesInfo.Add(new FileSystemInfoWrp(this.idCounter++, di.RootDirectory));
            }
            this.Add(null, drivesInfo.ToArray());
        }
 
        void radGridView1_ChildViewExpanded(object sender, ChildViewExpandedEventArgs e)
        {
            if (e.IsExpanded)
            {
                FileSystemInfoWrp parent = (FileSystemInfoWrp)e.ParentRow.Tag;
                // adding in begin/end update section invokes NullReferenceException, why ?
                //this.radGridView1.BeginUpdate();
                try
                {
                    this.Add(parent, this.GetFileSystemElements(parent));
                }
                finally
                {
                    //this.radGridView1.EndUpdate();
                }
                this.radGridView1.GridNavigator.SelectRow(e.ParentRow);
            }
            else
            {
                // remove child nodes, always read files from hdd
                foreach(GridViewRowInfo gvri in e.ParentRow.ChildRows)
                {
                    this.radGridView1.Rows.Remove(gvri);
                }
            }
        }
 
        void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            GridDataCellElement cell = e.CellElement as GridDataCellElement;
            if (cell != null && cell.ExpanderItem != null)
            {
                cell.ImageAlignment = ContentAlignment.MiddleLeft;
                cell.ExpanderItem.Alignment = ContentAlignment.MiddleLeft;
 
                if (((FileSystemInfoWrp)e.Row.Tag).ElementInfo is DirectoryInfo)
                {
                    if (e.Row.IsExpanded)
                    {
                        cell.Image = this.imageList1.Images[1];
                    }
                    else
                        cell.Image = this.imageList1.Images[0];
 
                    cell.ExpanderItem.Visibility = ElementVisibility.Visible;
                }
                else
                {
                    cell.Image = this.imageList1.Images[2];
                    cell.ExpanderItem.Visibility = ElementVisibility.Hidden;
                }
 
                cell.TextImageRelation = TextImageRelation.ImageBeforeText;
            }
        }
 
        private FileSystemInfoWrp[] GetFileSystemElements(FileSystemInfoWrp root)
        {
            List<FileSystemInfoWrp> result = new List<FileSystemInfoWrp>();
 
            if (root.ElementInfo is DirectoryInfo)
            {
                try
                {
                    FileSystemInfo[] infos = ((DirectoryInfo)root.ElementInfo).GetFileSystemInfos();
                    foreach (FileSystemInfo fi in infos)
                    {
                        result.Add(new FileSystemInfoWrp(this.idCounter++, fi));
                    }
                }
                catch // omits io exception
                {
                }
            }
 
            return result.ToArray();
        }
 
        private void Add(FileSystemInfoWrp parent, FileSystemInfoWrp[] fileInfos)
        {
            foreach (FileSystemInfoWrp fsiw in fileInfos)
            {
                GridViewRowInfo row = this.radGridView1.Rows.AddNew();
                row.Cells["ID"].Value = fsiw.Id;
                if (parent != null)
                    row.Cells["ParentID"].Value = parent.Id;
                row.Cells["Name"].Value = fsiw.ElementInfo.Name;
                row.Cells["Creation"].Value = fsiw.ElementInfo.CreationTime;
 
                row.Tag = fsiw;
            }
        }
    }
 
    public class FileSystemInfoWrp
    {
        public int Id { get; set; }
        public FileSystemInfo ElementInfo { get; set; }
 
        public FileSystemInfoWrp(int id, FileSystemInfo elementInfo)
        {
            this.Id = id;
            this.ElementInfo = elementInfo;
        }
    }
}

designer:

using TelerikRadControlsWinFormsPrototype.Properties;
namespace TelerikRadControlsWinFormsPrototype
{
    partial class MyFileSystemExplorer
    {
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.IContainer components = null;
 
            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
 
            #region Windows Form Designer generated code
 
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                this.components = new System.ComponentModel.Container();
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MyFileSystemExplorer));
                this.radGridView1 = new Telerik.WinControls.UI.RadGridView();
                this.imageList1 = new System.Windows.Forms.ImageList(this.components);
                ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
                this.SuspendLayout();
                //
                // radGridView1
                //
                this.radGridView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248)))));
                this.radGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
                this.radGridView1.ForeColor = System.Drawing.Color.Black;
                this.radGridView1.Location = new System.Drawing.Point(0, 0);
                //
                // radGridView1
                //
                this.radGridView1.MasterTemplate.AllowColumnChooser = false;
                this.radGridView1.MasterTemplate.AutoGenerateColumns = false;
                this.radGridView1.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
                this.radGridView1.MasterTemplate.Caption = null;
                this.radGridView1.MasterTemplate.MultiSelect = true;
                this.radGridView1.MasterTemplate.ShowGroupedColumns = true;
                this.radGridView1.Name = "radGridView1";
                //
                //
                //
                this.radGridView1.RootElement.ForeColor = System.Drawing.Color.Black;
                this.radGridView1.Size = new System.Drawing.Size(1216, 786);
                this.radGridView1.TabIndex = 2;
                this.radGridView1.Text = "radGridView1";
                this.radGridView1.ThemeName = "Telerik";
                //
                // imageList1
                //
                this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
                this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
                this.imageList1.Images.SetKeyName(0, "folder_blue_open1.png");
                this.imageList1.Images.SetKeyName(1, "folder1.png");
                this.imageList1.Images.SetKeyName(2, "new1.png");
                //
                // MyFileSystemExplorer
                //
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize = new System.Drawing.Size(1216, 786);
                this.Controls.Add(this.radGridView1);
                this.Name = "MyFileSystemExplorer";
                //
                //
                //
                this.RootElement.ApplyShapeToControl = true;
                this.Text = "My File System Explorer";
                this.Load += new System.EventHandler(this.Form1_Load);
                ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
                this.ResumeLayout(false);
 
            }
 
            #endregion
            private Telerik.WinControls.UI.RadGridView radGridView1;
            private System.Windows.Forms.ImageList imageList1;
    }
}

Cound You help me to solve these problems ?

Regards,
Robert

Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
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?