Telerik Forums
UI for WinForms Forum
4 answers
850 views

Hello,

I have a small form with an editable grid on it (databound to an ORM entity), and although I allow the users to edit most of the columns in a giving row, I would like to lock a few columns on the new row (when they click on "Click here to add a new row"). I have been trying to use gridview_CellFormatting, but I can't seem to figure out how to identify whether or not the column in context belongs to the new row (being created) or an already existing one on the grid. 

Any help would be truly appreciated.

 Thanks!

 

 

 

Dimitar
Telerik team
 answered on 25 May 2015
2 answers
198 views

I used the Grid in the Telerik samples for WinUI C:\Program Files (x86)\Telerik\UI for WinForms Q1 2015\Examples\QuickStart\GridView\Rows\AddNewRow\Form1.cs and added the following code to get the UnitPrice in a blue font:

 

 public Form1()
{
...
this.radGridView1.CellFormatting += new CellFormattingEventHandler(radGridView1_CellFormatting);
}

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
GridDataCellElement dataCell = e.CellElement as GridDataCellElement;
if (dataCell != null)
{
if (dataCell.ColumnInfo.Name.ToLower() == "unitprice")
{
dataCell.ForeColor = System.Drawing.Color.Blue;
dataCell.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
}
}
}

This works when the form get first loaded, but if I scroll the grid other cells also get blue randomly. 

 

Is there something I can do about this?

 Mat

 

Mathias
Top achievements
Rank 1
 answered on 22 May 2015
3 answers
155 views

Hi every one,

I want to to change my form the classic one to the same one in telerik panoroma exemple and i dont know how to do it

if someone have any idea please help me

 Thanks for every one

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2015
1 answer
124 views

Hello,

i have a RadRichEditor with tabstops set. 

When i press the Tab key on a blank line, then a indent is inserted. The cursor should jump to the tabstop.

When i write a char and press than tab, the cursor jump to the tabstop.  Why is that?

See pictures what i mean ...

Thanks.

Dimitar
Telerik team
 answered on 22 May 2015
2 answers
1.1K+ views

Hello guys ! I'm currently working on a project in C# with Visual Studio 2013 and Telerik for Winforms 2013.

I'm generating buttons in my program (buttons used for user login), and i'd like to change the font of the buttons i'm generating, but as you may have guessed, since they're not in the program until i launch it, i'd like to know if there's a command to change them directly into the code before generating them.

Thank you for your answers.

With many regards,

Martin.

Martin
Top achievements
Rank 1
 answered on 22 May 2015
1 answer
126 views

I'm working on Windows Form and i have selected Rad TimePicker for time insertion  into sql server.

i want to insert time in the form of 11:23 AM/PM . Value  inserted into sql server is in 11:23:00 format not in  11:23 AM/PM format. 

Please guide me.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2015
2 answers
340 views

Hi,

Is there anyway to refresh (reload) treeview which has been loaded tree nodes using LazyMode with on-demand-loading. I tried with TreeView.Refresh() and TreeView.Nodes.Refresh(). Both not working. 

Amos
Top achievements
Rank 1
 answered on 22 May 2015
1 answer
113 views

Hi,

I have a radgridview which is populated by a LINQ query via Entity Framework by setting the datasource of the grid: 

EG: grd.DataSource = query.ToList();

On the form I have two grids with the classic 'Move' button between them. I also want to be able to drag from grid source into grid destination, but the twist is the grids are not the same. The button click works out the logic for the data move (and it works fine), so I want the destination grid to fire the button click when the item is dropped onto it.

Any ideas folks on how to allow dragging from the source grid and also on how to capture the 'drop' event in the destination grid?

Thanks all. 

 

 

Dimitar
Telerik team
 answered on 21 May 2015
6 answers
433 views

I can't find an soloution for my problem. I already searched and tried many hours, but without success.

Well, I hope somebody can help me with my problem. 

I am  Using Telerik winforms 2015 Q1....

How it is possible via code to set a focus on RadGridViews Filter TextBox Column like textbox blink ?

MY application Loading page has 1 Gridview

after populate grid i want to cursor focus(cursor blink)  to fliter row first column...

now only work after any key press  or mouse click on fliter row- showing fliter text box...

 i need to show after page load cursor blinking gridview filter row first column like textbox blink

Thank you

sajeev

Dimitar
Telerik team
 answered on 21 May 2015
1 answer
147 views

Hello,

I have a panorama window with some tiles and I would like to use right mouse click, left mouse click and double click. For both right and left mouse click no problem, it works perfectly, but double click event doesn't work correctly. Sometimes yes but most of the time not. There is any special method to use double click event in tiles?

 Thank you,

Eduard

Dimitar
Telerik team
 answered on 21 May 2015
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?