Telerik Forums
UI for WinForms Forum
7 answers
155 views
Hi.
How can I create my own gridviewcolumn and add use it in radgridview?
Stefan
Telerik team
 answered on 21 Apr 2012
1 answer
119 views
Hi.
 I use RadGridView that has these columns.
1.ProducId(tetxtboxcolumn)
2.ProductName(tetxtboxcolumn)
3.UnitType(comboboxcolumn)

i want to add a new row to radgridview while a new row added, Unittype shoud bind to table unittypes base of  ProductId
 in my db that has these fields
1.ProducId
2.Firstunit 
2.SecondUnit
3.ThirdUnit

Ivan Petrov
Telerik team
 answered on 21 Apr 2012
1 answer
135 views
Hi all  Telerik team,
   I would like  to add/edit  node and show the node text in the treeviewtextboxeditor as inizialized value , but the editor appear with empty text.

I try to set value in the Valdiating event but this code ends the editing mode and user cannot modify the value
void rtvCustomTags_Editing(object sender, Telerik.WinControls.UI.TreeNodeEditingEventArgs e)
{
    e.Editor.Value = e.Node.Text;
}


can you help me, please?
Thank you
Stefan
Telerik team
 answered on 21 Apr 2012
0 answers
84 views
Does the Row Validation event fires when the user adds a new record to the gridview?


Thanks.


James
Top achievements
Rank 1
 asked on 21 Apr 2012
0 answers
94 views
In a situation where the user wants to add a new row to the gridview control, I have assigned some default values for the new row.  For some of these default values, I want to prevent the user from changing those values.  Am I able to do this?  If yes, how can I do this?  Please provide code?


Thanks.

James
Top achievements
Rank 1
 asked on 21 Apr 2012
3 answers
367 views
Assume I have the following two tables:

Table 1 (Customer) has the following fields:
1) Customer ID
2) First Name
3) Last Name
4) Street Address
5) City FK

Table 2 (City) has the following fields:
1) City PK
2) City

Table 2 is a look-up table that consists of city names.  City PK if the primary key field for the City table.  These primary key values appear as foreign key values in the City FK field of the Customer table.

I want to add a grid view to a form which shows all of the data in the Customer table.  Instead of showing the foreign key values in the City FK field, I want to show the actual city name which corresponds to the foreign key value stored in this field.  How can I do this with the grid view control? 

I had placed a grid view on a form and had attached a data set to this control, but the the City column is showing foreign key values for the city instead of the city name.  This is what I don't want the grid view to show.  How can I resolve this problem?


Thanks.


James
Top achievements
Rank 1
 answered on 20 Apr 2012
4 answers
230 views
The MultiColumn Combobox will display "Telerik.WinControl.." if  the value of Display Member is null or empty. That's wrong.

Please see 1.jpg.

It should be display a empty string.

Please help me!

Thanks.
David
Top achievements
Rank 1
 answered on 20 Apr 2012
2 answers
194 views
Hello, I went through and created a custom visual item for my listview and everything worked out great (Telerik documentation was a big help). I then tried to apply custom grouping to my listview and no grouping appeard (everything loads, just without groups). After another quick look I realized that my custom item is also being applied to the group item (doh!). How would I go about determining the type of item being created int the VisualItemCreating event? Thanks
Hunter
Top achievements
Rank 1
 answered on 20 Apr 2012
3 answers
439 views
Hello

I have looked through the forums and I haven't found an answer that works yet so I thought I would just ask. I am trying to make the first row of my radgridview object have a blue background color in c#.  This is some of the code

foreach (var ResultLine in myFiles)
                    {
                        string[] Contents = System.IO.File.ReadAllLines(ResultLine.FullName.ToString());
                        if (headercount == 0)
                        {
                            string HeaderRow = Contents[0];
                            string[] HeaderRowSplit = HeaderRow.Split(new char[] { ',' });
                            for (int i = 0; i < rgvAlarmLog.ColumnCount; i++)
                            {
                                rgvAlarmLog.Rows[rowCount].Cells[i].Value = HeaderRowSplit[i];
                                rgvAlarmLog.Rows[rowCount].Cells[i].Style.BackColor = System.Drawing.Color.Blue;
                            }
                            rowCount++;
                            headercount = 1;



If I change backcolor1 or 2 or 3 then I see color change in the highlighted row when selected. I do not want that though. I  want the background color to be blue all the time. How can I do this with code?
Richard Slade
Top achievements
Rank 2
 answered on 20 Apr 2012
1 answer
205 views
Hello

I have my data added like this way Added for items and two groups and assigned as below.
this.radListView1.Groups.Add(new ListViewDataItemGroup("First Group"));
this.radListView1.Groups.Add(new ListViewDataItemGroup("Second Group"));
 
this.radListView1.Items[0].Group = this.radListView1.Groups[0];
this.radListView1.Items[1].Group = this.radListView1.Groups[0];
this.radListView1.Items[2].Group = this.radListView1.Groups[1];
this.radListView1.Items[3].Group = this.radListView1.Groups[1];
If I wanted to select the first Group "First Group" and on basis for that i wanted to show message or call any other event...
How can i do that ?
Stefan
Telerik team
 answered on 20 Apr 2012
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
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?