Telerik Forums
UI for WinForms Forum
5 answers
1.4K+ views
I have just realized that at CellValidating event e.row.DataBoundItem is allways null.
In Q1 2010 when I added a new row into the grid using add row, e.row.DataBoundItem wasn't null and contained a new entity with part filled properties.
Now my application fires many exceptions....

Is it a bug or feature?
Julian Benkov
Telerik team
 answered on 10 Aug 2010
1 answer
355 views
I have a radgridview on a winform that is bound to a tableadapter.

I have the following code in the CellEndEdit Event:

 

 

private void grdPeople_CellEndEdit(object sender, GridViewCellEventArgs e)
       {
           try
           {
               this.Validate();
               this.peopleBindingSource.EndEdit();
               this.peopleTableAdapter.Update(peopleDAL);
                 
           }
           catch (System.Exception ex)
           {
               MessageBox.Show("Update failed:"+ex.Message);
           }
            
       }

The problem is when I click the "Click here to Add a New Row" and fill in the row, the Adapter.Update gets called but nothing is inserted into the database when I leave the row. I can step through the code and it steps over the Update, and no error is raised - yet there is no data in the database.  If I navigate off of the row, then navigate BACK to the row and update it, then the
INSERT command is fired cause I can see it in the database when I do a trace.  

So what I need to know is where is the right place to put a call to the Adapter.Insert Method?  I don't know what event to use.

I know I can create a new set of textboxes and checkboxes tro mimic my record and have a "Click to INsert" button with some code behind that, but I want to use the default functionality of the RadGrid.

Having said that - what is the recommended way to bind radGridViews to a SQL database?  I use TableAdapters because I come from an ASP .NET background and they work well there - but is there a better way to do it in Winforms?  Should I be using LINQ?

Julian Benkov
Telerik team
 answered on 10 Aug 2010
3 answers
176 views
Hi,
there are attached files
So  I have this problems with RadListBox - floating on scroll? i try to fix it with position:relative, but the problem still exist
radgridBug.jpg

My code is looking like that

<Content id=".." contentplaceholderid="">
<DIV>
     <div>
       <RADGRID IS HERE>
    </div>
    <div>
       <RadListBox  1>
         <RadListBox  2>
    </div>
<DIV>
</Content>

So if i put position:relative - to the main DIV - than my RADGRID is floating - radgridBug2.jpg

So is there some way to solve this issue- I google it and so many people had been crushed with this problem...
Kamen Bundev
Telerik team
 answered on 10 Aug 2010
6 answers
429 views
i'm using rad chart , but a run time error appears
Unexpected error has occured.please review the inner exception for more information to solve the problem.
INNER EXCEPTION as follow:
Object reference not set to an instance of an object.

SOURCE:
Telerik.wincontrols.radchart
What is the problem and how to solve it?
shinu rag
Top achievements
Rank 1
 answered on 10 Aug 2010
1 answer
863 views
Hello,

We have a GridView bound to a BindingLIst of custom business objects. The customer has very strict data validation requirements and doesn't want a new row to be added to the data source until the data is clean, so we have implemented RowValidating and perform validations there for both the 'new' row and existing rows. This works well. 

The problem is that if a user decides against adding the row, they can't simply click out of the row, they would either have to finish the row entry and then delete the row, or close out of the form and then return to it. These are not elegant solutions. We wish to provide a Cancel button that will simply discard all changes made to the row, be it a 'new' row or an existing row. How can we accomplish this?

Thanks
Martin Vasilev
Telerik team
 answered on 10 Aug 2010
6 answers
248 views
Hello All

Please guide me how can RadPageView can be used instead of Tabbed Document Window in Rad dock.

Thanks & regards
Neha
neha
Top achievements
Rank 1
 answered on 09 Aug 2010
0 answers
87 views
_Repeated Thread, sorry_
Would you remove it please?
Nour Khattab
Top achievements
Rank 1
 asked on 09 Aug 2010
1 answer
141 views
Hello,

Please how can i unpin all currently pinned gridview rows?
Svett
Telerik team
 answered on 09 Aug 2010
5 answers
177 views
I had the controls in the toolbox. Then, attempting to create a test project for RadGridView, opening the property builder and clicking on the Build button on the top, VS2010 crashed. When it restarted, the toolbox no longer has RadControls.

BTW, I was not sure what the Build button was for, I just clicked it to see if my column names would appear in the Grid design view.

Thanks,
Gary Davis
Stefan
Telerik team
 answered on 09 Aug 2010
1 answer
147 views
Hi !

I tried to follow the example for cell formating from your tutorial but this functions is not working

Private Sub radGridView1_CellFormatting(sender As Object, e As Telerik.WinControls.UI.CellFormattingEventArgs)
 If e.CellElement.ColumnInfo.HeaderText = "column2" Then
  If e.CellElement.Text = "H" Then
   e.CellElement.RowInfo.Cells("column1").CellElement.ForeColor = Color.Red
  Else
   e.CellElement.RowInfo.Cells("column1").CellElement.ForeColor = Color.Black
  End If
 End If
End Sub


e.CellElement.RowInfo.Cells(0) doesn't have any CellElement property !


How I can access another cell from another column in order to change the colour?

Regards,
Hans


Svett
Telerik team
 answered on 09 Aug 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?