Telerik Forums
UI for WinForms Forum
1 answer
46 views
Hi,

When filtering is on, an exception is thrown when you press the single quote key (or apostrophe). I guess it's an expression injection problem or something like that.

Any solution ?

Thanks
Jack
Telerik team
 answered on 15 Sep 2009
1 answer
53 views
Hi,

When filtering is on, an exception is thrown when you press the single quote key (or apostrophe). I guess it's an expression injection problem or something like that.

Any solution ?

Thanks
Jack
Telerik team
 answered on 15 Sep 2009
1 answer
52 views
Hi,

When filtering is on, an exception is thrown when you press the single quote key (or apostrophe). I guess it's an expression injection problem or something like that.

Any solution ?

Thanks
Jack
Telerik team
 answered on 15 Sep 2009
5 answers
477 views

I have a RadGridView, and a button "Next", which makes the selected row change to the one below when the user clicks on it:

int selectedIndex = this.radgrid.SelectedRows[0].GridViewInfo.CurrentIndex;
//Go to next index
selectedIndex++;

this.radgrid.CurrentRow = radgrid.Rows[selectedIndex];

The problem occurs when the grid is sorted by one column, say a Date column. If one date is expanded and a row is clicked, the CurrentIndex is the index of the row within the selected date. But when I try to set the CurrentRow, it is set to the "overall" index, as if the grid was not sorted.

Any ideas on how to solve this?

Regards, Jill-Connie Lorentsen

Jack
Telerik team
 answered on 15 Sep 2009
3 answers
702 views
Hello,

    I'm developing an application for my company. I use a radprogressbar and a radstatusstrip into an user control, that is inside a radribbonform. I use those control as waiting status in some operation.
I tried backgroundworker and timer but the progressbar after the operation finish. Also i use statusstrip.Refresh() but it doesn't work.

Please help me. !!!!

Mirko
Victor
Telerik team
 answered on 15 Sep 2009
3 answers
254 views
hi,

i am getting the issue in check box column whether it is checked or not.
if i use cellformating event then it fires thousands time for one row.

                for (int count = 0; count < grdProductSearch.Rows.Count; count++)
                {
                   string value = grdProductSearch.Rows[count].Cells["Link"].Value.ToString(); //it returns empty value.
                }
if i use this
bool isSelected = grdProductSearch.Rows[count].Cells["ColUniqueName"].CellElement.IsSelected;

then it gives me error that cellelement is null.

Please tell me how i can resolve this issue.

Thanks.
Jack
Telerik team
 answered on 15 Sep 2009
3 answers
439 views

Hello,

I have a master form which is the MDI parent and a child form which is the MDI child.  I use the following code to open the master form and load in a child form:

 

Private

 

Sub MasterForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

 

    Dim clientForm As New ClientForm

 

 

    With clientForm

 

        .MdiParent =

Me

 

        .MinimizeBox =

False    

 

        .MaximizeBox =

False

 

 

 

        .WindowState = FormWindowState.Maximized

 

 

    End With 'clientForm    

 

 

 

 

 

    Dim document As New DocumentWindow("Document 1")

 

    clientForm.Visible =

True

 

    clientForm.Show()

    document.AutoScroll =

True

 

    document.Controls.Add(ClientForm)

    document.Controls(0).Location =

New Drawing.Point(0, 0)

 

 

    Me.RadDock1.AddDocument(document)

 

 

    Me.WindowState = FormWindowState.Maximized

 

 

End Sub

 

 

 

I set the autoscroll property of the DocumentWindow to True, so whenever there is a field not visible a scroll bar appears, which works well.

What I can't figure out is how do I wire up code for the mousewheel event or for the KeyDown event to scroll the scrollbar?  I was able to successfully do this creating a radform with 2 radpanels and a radvscrollbar.  But now that I am using this autoscroll, what do i reference?

Thanks,

Deyan
Telerik team
 answered on 15 Sep 2009
3 answers
105 views
Hi!

I'm encountering a Null reference when using RadGridView. The context in which it occurs is rather complex, and recreating the issue in a small, contained project will prove to be a lot of work. Before I head this way to get further support, I would like to post a stack trace in the hopes that someone will recognize this type of error and tell me of a solution.

I realize that this isn't a lot of information to help debugging. I'm just hoping for a quickfix before I get my hands dirty,

Here is the part of the stack trace that matters:

  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.ViewTemplate.get() + 0x6 bytes 
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.InvalidateColumnWidths(Telerik.WinControls.UI.GridViewColumn column = null, int oldWidth = 0) + 0xc bytes 
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.UpdateColumns(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e = {Telerik.WinControls.Data.NotifyCollectionChangedEventArgs}) + 0x22e bytes 
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewColumnCollection.NotifyListenersCollectionChanged(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e = {Telerik.WinControls.Data.NotifyCollectionChangedEventArgs}) + 0x55 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Data.ObservableCollection<System.__Canon>.OnCollectionChanged(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e) + 0x29 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Data.ObservableCollection<System.__Canon>.EndUpdate(bool notifyUpdates) + 0x62 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Data.ObservableCollection<System.__Canon>.EndUpdate() + 0x10 bytes 
  Telerik.WinControls.GridView.dll!Telerik.WinControls.Data.DataAccessComponent.AutoGenerateGridColumns() + 0x301 bytes 
  Telerik.WinControls.GridView.dll!Telerik.WinControls.Data.DataAccessComponent.currencyManager_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e) + 0xb4 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.CurrencyManager.OnListChanged(System.ComponentModel.ListChangedEventArgs e) + 0x17 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.CurrencyManager.List_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e) + 0x51c bytes 
  System.Windows.Forms.dll!System.Windows.Forms.BindingSource.OnListChanged(System.ComponentModel.ListChangedEventArgs e) + 0x7e bytes 
  System.Windows.Forms.dll!System.Windows.Forms.BindingSource.ResetBindings(bool metadataChanged) + 0x35 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.BindingSource.SetList(System.Collections.IList list, bool metaDataChanged, bool applySortAndFilter = true) + 0xf0 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.BindingSource.ResetList() + 0xd1 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.BindingSource.DataSource.set(object value) + 0x34 bytes 

Below this is my user code. The line that throws the exception assigns a generic list of objects to the DataSource of my BindingSource. The RadGridView uses a master-child GridViewTemplate. The error occurs when I try to assign the DataSource of the child.

Thank you.
Jack
Telerik team
 answered on 15 Sep 2009
1 answer
156 views
Hi the Telerik Team,

If I have a column name which contains a dot (e.g. Suppliers.Title), no data is displayed for this column in the RadGridView.

For your information:
  • I use the version 2009.9.729
  • I bind a DataTable to the RadGridView
  • My DataTable is created from an SQL Query (which explains the Suppliers.Title)
  • I have ensured that the column contains data
  • If I rename my column to "Suppliers_Title", it returns the data (e.g. in my sql query : SELECT Suppliers.Title AS Suppliers_Title, ...)
  • If I execute this statement ((DataRowView)((BindingSource)resultsRadGridView.DataSource)[0])["Suppliers.Title"], the data is returned too

Thank you for your help,

Regards,
Julian Benkov
Telerik team
 answered on 15 Sep 2009
14 answers
483 views
hi
i set a data source (data table ) to the grid with the line

DataGrid.DataSource = dt;

then i save some staff in my DB and then i wanted to bound  different data table to the same grid using the same command line
DataGrid.DataSource = saveddt;

but i get a null reference exception

Object reference not set to an instance of an object.

  at Telerik.WinControls.UI.GridTableBodyElement.editor_Validated(Object sender, EventArgs e)\r\n   at Telerik.WinControls.UI.RadCheckBoxEditor.OnValidated(EventArgs args)\r\n   at Telerik.WinControls.UI.RadCheckBoxEditor.SaveValue()\r\n   at Telerik.WinControls.UI.GridTableBodyElement.ResetActiveEditor(Boolean restoreOriginalValue)\r\n   at Telerik.WinControls.UI.GridTableBodyElement.Update(Boolean dataSourceChanged)\r\n   at Telerik.WinControls.UI.GridTableElement.Update(Boolean dataSourceChanged)\r\n   at Telerik.WinControls.UI.GridViewInfo.UpdateView(Boolean dataSourceChanged)\r\n   at Telerik.WinControls.UI.GridViewInfo.UpdateView()\r\n   at Telerik.WinControls.UI.GridViewTemplate.Rebind()\r\n   at Telerik.WinControls.UI.RadGridView.RefreshColumnsAndRows()\r\n   at Telerik.WinControls.UI.GridViewData.InitDataOnly()\r\n   at Telerik.WinControls.UI.GridViewData.InitView()\r\n   at Telerik.WinControls.UI.GridViewData.SetDataConnection(Object dataSource, String dataMember)\r\n   at Telerik.WinControls.UI.RadGridView.DoDataBinding()\r\n   at Telerik.WinControls.UI.RadGridView.CallDoDataBinding()\r\n   at Telerik.WinControls.UI.GridViewTemplate.set_DataSource(Object value)\r\n   at Telerik.WinControls.UI.RadGridView.set_DataSource(Object value)\r\n  

Jack
Telerik team
 answered on 15 Sep 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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?