Telerik Forums
UI for WinForms Forum
4 answers
187 views
Does the grid support my replacing/removing the Filter operators?

Some column examples:

Total Sales (dollar format)
Replace filter textbox and operators menu with predefined options of "< 1 Million", "1 to 10 Million", "11 to 50 Million", and "> 50 Million".

Category (text but business rules only allow 3 categories)
So replace filter textbox and operators menu with the 3 categories, e.g. "Fruit", "Bread", "Meat"

Martin Vasilev
Telerik team
 answered on 01 Mar 2011
15 answers
1.7K+ views
Hi All

I need to dynamically add  DataGridViewComboBoxCell in telerik datagridview but I could not do that
is there any way to add such cells dynamically?

thanks

 

Martin Vasilev
Telerik team
 answered on 01 Mar 2011
2 answers
122 views
I have created a custom editor for GridView (based on BaseGridEditor).

The nature of my editor is that the "Value" you select in the editor is actually two values (integers), there is also a text description I would like to be displayed in the grid when the cell is not edited.

I tried to make the editor expose an object of a class encapsulating my two values and the text description with the Value property. (The class had a ToString implementation that returned the text description).
I also tried to bind the grid to something like
Grid.DataSource = from s in whateversource select new {irrelevantfield = "whatever", complexfield = new ComplexClass { v1=o.v1, v2=o.v2, description=o.Description}};

However, the grid doesn't seem to want to remember my ComplexClass value, it seems it just runs ToString on what it gets from the editors Value property, because when I edit the cell again it sets the editors Value property to a string.


Can you recommend a way to
1. handle the selected "value" and text representation separately.
2. handle selected "values" that are complex, that is they are multiple values.

Thanks
Hannes
Top achievements
Rank 1
 answered on 01 Mar 2011
2 answers
133 views

I get a "Object reference not set to an instance of an object." error when I run this simple VB form

Imports Oracle.DataAccess.Client
Imports Telerik.WinControls.UI

Public Class frmTreeView

Private cmdTemp As New OracleCommand
Private dvTemp As DataView
Private dtTemp As New DataTable
Private daTemp As OracleDataAdapter
Private dsTemp As New DataSet
Private Sub frmTreeView_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  With cmdTemp
    .CommandType = CommandType.StoredProcedure
    .Connection = db.oraCn
    .CommandText = "badgernet.web_read_util.group_tree"
    .Parameters.Clear()
    .Parameters.Add("out_rs", OracleDbType.RefCursor, DBNull.Value, ParameterDirection.Output)
  End With
  daTemp = New OracleDataAdapter(cmdTemp)
  dtTemp.Clear()
  daTemp.Fill(dtTemp)
  dsTemp.Tables.Add(dtTemp)

  tvGroups.DataSource = dsTemp
  tvGroups.DisplayMember = "group_name"
  tvGroups.ValueMember = "object_id"
  tvGroups.ParentIDMember = "PARENT_ID"  ' ERRORS ON THIS LINE
  tvGroups.DataMember = "dtTemp"

End Sub
End Class

It runs if I comment out the offending line, without hierarchical support. There is a field named "parent_id". Any suggestions?
My data source looks like this.  I need the child field to be group_id, but the valuemember to be object_id, if that's possible.

object_id  group_id  parent_id   group_name
100 100 nullFootball
101 101 100 Offense
103 103 101 O-Line
110 110 101 Tight Ends
111 111 101 Recievers
112 112 101 Backs
65234 0 112 Duckworth, Jeff
113 113 112 Tailbacks
114 114 112 Fullbacks
102 102 100 Defense

Later
Art

Richard Slade
Top achievements
Rank 2
 answered on 01 Mar 2011
6 answers
144 views
1. Is there a way where I can get a blank row/space between rows. That way the grid will look neater.
2. Is there a property or method which prevents a row being part of the filter.
3. Is there a property or method by which I can pin a row to the top so that it does not go off the view while scrolling vertically.


Thanks
Deepak
Richard Slade
Top achievements
Rank 2
 answered on 01 Mar 2011
2 answers
275 views
Hello...
          I wanna link progress bar value to form load. Because to load the form its taking time so i wanna show the form loading status through progress bar. I tried with some code but the progress bar value is not syncing to form load. Can u help?
Richard Slade
Top achievements
Rank 2
 answered on 01 Mar 2011
2 answers
111 views
Hi

Visually the grid always shows as having focus even though some other control has focus. Can that be avoided?

Kindly advise any solution.

Regards!
Zerka
Top achievements
Rank 1
 answered on 01 Mar 2011
2 answers
115 views
Hi,
   is there any way to set and and grid row like this example given below

1)   Dim RowNum As Integer=grd.Row
2)   grd.Row=i

* Where Row is grid property which gives row number
* where i is an integer like 1,2,3,.................................
meraj
Top achievements
Rank 1
 answered on 01 Mar 2011
17 answers
370 views
Hello,

I have a hierarchical GridView with about 250+ rows. Scrolling through the grid page at a time by clicking on the scrollbar throws exception.

      Object reference not set to an instance of an object.
         at Telerik.WinControls.UI.GridTraverser.StepInHierarchyBackward()
         at Telerik.WinControls.UI.GridTraverser.MovePreviousCore()
         at Telerik.WinControls.UI.GridTraverser.MovePrevious()
         at Telerik.WinControls.UI.ItemScroller`1.ScrollUp(Int32 step)
         at Telerik.WinControls.UI.ItemScroller`1.thumbTimer_Tick(Object sender, EventArgs e)
         at System.Windows.Forms.Timer.OnTick(EventArgs e)
         at System.Windows.Forms.Timer.TimerNativeWindow.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(Int32 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 GridSample1.Program.Main() in C:\Users\MyUserName\Documents\GridSample1\Program.cs:line 18
         at System.AppDomain._nExecuteAssembly(Assembly 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)
         at System.Threading.ThreadHelper.ThreadStart()


My code was working fine until Q2 2010 SP1. My current version is Q3 2010.

Thanks.
Ivan Todorov
Telerik team
 answered on 01 Mar 2011
2 answers
387 views
Hi

           I am used radgridview in my vb.net project. Here i validate the a particular cell which is only acceptable numeric letters and point separators. The particular cell is in edit mode. How its to validate using vb language.

Please send any sample vb.net project attached for my reference.

Thanks
Allwin
 
Richard Slade
Top achievements
Rank 2
 answered on 01 Mar 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?