Telerik Forums
UI for WinForms Forum
3 answers
163 views
Hi,
My radgridview is dynamically populated and I am trying to delete a row. It deletes it from the grid but not from the database. My code is as follows:

'bsMaintenance is the bindingsource

bsMaintenance.RemoveCurrent()

bsMaintenance.EndEdit()


'Save changes

Dim

 

myBuilder As SqlCommandBuilder = New SqlCommandBuilder(daDataAdapter)

 

 

Dim iResult As Integer

 

 

Dim bResult As Boolean = False

 

bsMaintenance.EndEdit()

myBuilder.GetUpdateCommand()

 

daDataAdapter.UpdateCommand = myBuilder.GetUpdateCommand()

 

daDataAdapter.Update(DSData, "TBL_CALL_TYPES")

 




Any help would be appreciated.


Martin Vasilev
Telerik team
 answered on 25 Jun 2009
1 answer
155 views
Hello,

My partner and I cannot seem to figure this out.  Right now, we have the carousel feature working nicely, the only downfall is that the carousel panels start way off to the right side.  We would like the middle carousel panel to start right in the middle of the screen, with the middle element selected.  We figured out how to select the correct element, but cannot figure out how to get the carousel panel to start in the correct spot. 

Any help greatly appreciated. 

Thanks
Deyan
Telerik team
 answered on 25 Jun 2009
5 answers
1.5K+ views
Hi,

I would like to use horizontal and vertical lines (borders) for cells to divide the information of the gridview and see it clearly. At the moment I have a gridview without any line and it´s difficult to see well the datas.

how can I do it?

Thank you in advance.
Deyan
Telerik team
 answered on 24 Jun 2009
4 answers
291 views
Greetings!

I'm having trouble with the alignment (particularly vertically) of an image on a RadButtonElement that's in a RadRibbonBar. I hope I'm just missing something simple!

Here's the walkthrough:

  1. Create a new Windows application
  2. Drop a RadRibbonBar onto the form
  3. Click "Add New Tab" and name it "Test"
  4. Click "Add New Chunk..." under Test
  5. Right click the New Chunk and click "Add an item" > "Horizontal Button Group"
  6. Right click the space inside the new group and click "Add an item" > "RadTextBoxElement"
  7. Carefully right click the group again and this time click "Add an item" > "RadButtonElement"
  8. Change the button's image anything smaller than 16x16. For example, Common7\VS2008ImageLibrary\1033\Objects\24bit_bitmaps\share.bmp from the Visual Studio 2008 image library
  9. Change the button's display style to Image
  10. Change the button's MinSize.Height to 22

 

The button is now to the right of the text box, but the image is not vertically centred in the button (note that if you set the MinSize.Width to be large than the image's width, it will not be horizontally centred either).

Most importantly, changing the buttons' ImageAlignment does not appear to have any effect - it is still displayed only at the top of the button and not centered, regardless of the setting of this property.

Is there a way to get the image to display in the centre of the button in this instance?

Thanks!

Cheers,

FRASER TUSTIAN



Specs:
OS: Windows Vista SP1
.NET Version: 3.5
Telerik Libraries Referenced:
Telerik.WinControls.dll   8.0.0.0
Telerik.WinControls.UI.dll  8.0.0.0
TelerikCommon.dll   8.0.0.0

Martin Vasilev
Telerik team
 answered on 24 Jun 2009
1 answer
118 views
Hi!

Is there any way to disable sorting in the overflow section? I want to keep the original order of my tabs, as I added them, but in the overflow section they are sorted alphabetically. I've searched everywhere where I could, but I wasn't able to find any answers.

Best regards,
Csongor
Martin Vasilev
Telerik team
 answered on 24 Jun 2009
2 answers
237 views

Hello,

I need to change the font of the gridview + header Programmatically.
The gridview rows I can change successively in the cellformating event  

  private void radGridViewProductie_CellFormatting(object sender, CellFormattingEventArgs e)
{
            e.CellElement.Font = Mo.LetterType;
}


The header row i change after binding the gridview.
See the following code

schrapViewBindingSource.DataSource = Schraplijst;
radGridViewProductie.DataSource = schrapViewBindingSource;
radGridViewProductie.MasterGridViewTemplate.BestFitColumns();

GridViewRowInfo Row = this.radGridViewProductie.MasterGridViewInfo.TableHeaderRow;
foreach (GridViewCellInfo gi in Row.Cells)
{
   if (gi.CellElement != null)
   {
       gi.CellElement.Font = Mo.LetterType;
   }
}

This works but the problem is when I comment out the BestFitColumns the Cellelement always returns null

What is the best way to change the font of the header row.?
Wich event can I use for that ?


Greetings Tim
IT Development
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
268 views
I change the forecolor of cell in cell formatting event.When I scroll in the grid the cell becomes normal color as black.How to solve this issue?
Jack
Telerik team
 answered on 24 Jun 2009
1 answer
105 views

Hi

I am getting the below strange warning, because of these error, I can not see the design view.
I am using version 2009.1.9.604.

Warning
Warning 2 No such property registered: NumberOfColors, Telerik.WinControls.UI.LightVisualElement  
(warning @ Me.dtEnd.Checked = True )
Warning 8 No such property registered: BorderBoxStyle, Telerik.WinControls.UI.LightVisualElement
(warning @  Me.RadGridView1.Size = New System.Drawing.Size(690, 242) )

Designer.vb
Me.dtEnd.AutoSize = True
Me.dtEnd.Checked = True       
Me.dtEnd.CustomFormat = "dd/MMM/yyyy"
Me.dtEnd.ForeColor = System.Drawing.Color.Black
Me.dtEnd.Format = System.Windows.Forms.DateTimePickerFormat.[Long]
Me.dtEnd.Location = New System.Drawing.Point(269, 57)
Me.dtEnd.MaxDate = New Date(9998, 12, 31, 0, 0, 0, 0)
Me.dtEnd.MinDate = New Date(1900, 1, 1, 0, 0, 0, 0)
Me.dtEnd.Name = "dtEnd"
Me.dtEnd.NullDate = New Date(1900, 1, 1, 0, 0, 0, 0)
Me.RadGridView1.RootElement.ForeColor = System.Drawing.Color.Black
 

Me.RadGridView1.ShowNoDataText = False
Me.RadGridView1.Size = New System.Drawing.Size(690, 242)
Me.RadGridView1.TabIndex = 0
Me.RadGridView1.ThemeName = "Telerik"

Regards
raju

Nick
Telerik team
 answered on 24 Jun 2009
1 answer
159 views
It appears that when the position of the context menu is determined it is not taking into account the taskbar location and as a result the last context menu item is being hidden behind the taskbar.
Deyan
Telerik team
 answered on 24 Jun 2009
7 answers
1.2K+ views
Hi,

How can I create a bottom border just for the last row in my grid?  Currently my rows alternate between white and orange and when my grid only displays a few records and the last row is white there is no border between the row bottom and the white background of the grid.  I would prefer a border over changing my row colors.

Thanks,
Jeremy
Jack
Telerik team
 answered on 24 Jun 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)
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?