Telerik Forums
UI for WinForms Forum
1 answer
236 views

Hi dear rep of telerik,
I have a GridViewComboBoxColumn in my gridview and would like to extract the selected text (given by DisplayMember property) programatically.

here is my column declaration

Dim clubManagerColumn As New GridViewComboBoxColumn
clubManagerColumn.HeaderText =
"Club Manager"
clubManagerColumn.DataField = "manager_stuff_id"
clubManagerColumn.DataSource = StaffBindingSource
clubManagerColumn.ValueMember =
"staff_id"
clubManagerColumn.DisplayMember = "staff_name"
ClubRadGridView.MasterGridViewTemplate.Columns.Add(clubManagerColumn)

when I try 

ClubRadGridView.CurrentRow.Cells("club_address_id").Value

I am getting the value for the DataField property, instead I would like to get the selected value of the DisplayMember property.

thank you!

Peter
Telerik team
 answered on 08 Oct 2007
3 answers
88 views
When i delete a row from the grid i just put the font strikeout so that user can still see what rows have been deleted.

When i sort column the rows that appears strikeout are not the one deleted but the one corresponding to the index?

Can this be fixed soon as it is sort :P of a stopper !

thanks
Nikolay Dobrev
Telerik team
 answered on 08 Oct 2007
1 answer
114 views

Hi
I have fixed my original problem (should have looked at the sample sooner), but I still have a question about adding a document panel via code.  My code uses the recommended approach:

this.dockingManager.SetDocument(documentPane);

but my new document pane does not appear until I select one of the other/existing document panes.  Is there some method (Refresh does not work) which I can call to make sure everything is updated?

Best regards

Marek

Julian Benkov
Telerik team
 answered on 08 Oct 2007
2 answers
193 views
I have a function that formats rows in the grid. For example the rows that have been modified are put to bold, etc. When i call this function i sometimes get an exception stating that VisualElement is null??

Is it ok to manipulate the visual style of a row with this property and if not ... how to format row ?

ps: the format condition is not good for me so please another way...
Louis
Top achievements
Rank 1
 answered on 05 Oct 2007
4 answers
130 views
hi

this is what i want to accomplish

giving users to edit the entire colum with a single click of the button. i.e if the users click on one button at the top or bottom of a column, only that entire column will become editable.

users can edit the colum and when finished save the entire set

can this be done using gridview and if so then please let me know how it will be done

thanks
Jack
Telerik team
 answered on 05 Oct 2007
3 answers
204 views
ok, I've enabled the filtering on my grid and put the default Filter for each column to StartsWith like this

colTxt.Filter = new ColumnFilterData(GridKnownFunction.StartsWith);

Now when i enter some text in the filter area the filter does not occur and when i erase the filter string the grid throws an execption stating that the object is not defined (Null)...

Could you put me on your payrole please :)

Jack
Telerik team
 answered on 04 Oct 2007
1 answer
83 views
Ok guys just to share with you if someone is trying to do this. (We absolutly need this)

in the CurrentRowChangedEvent just do this

int idxcur = Int32.MinValue;

int idxold = Int32.MinValue;

if (e.OldRow != null)

idxold = grdSearchResults.Rows.IndexOf(e.OldRow);

if (e.CurrentRow != null)

idxcur = grdSearchResults.Rows.IndexOf(e.CurrentRow);

//last row when tab is pressed so create a new row

if ((idxcur==grdSearchResults.Rows.Count-1 && idxold==Int32.MinValue) || idxcur == idxold)

AddMeANewLine();

This works for me.
If anyone knows how to select the first cell (place it in edit mode) let me know.

hope this help

Jack
Telerik team
 answered on 04 Oct 2007
1 answer
132 views
Hi All


Anyone know how to use the gridview to add data unbound (using rows.add).
And will it work for adding into a hierarchial grid?

Thanks

Adrian
Jack
Telerik team
 answered on 03 Oct 2007
2 answers
317 views
Hi All

I am trying to fill the grid using a set of objects i have created using csla.net (www.lhotka.net).
At the moment i am trying to create a new instance of the GridViewRowInfo object in order to fill and add it to a parent row.
It is asking me for a constructor of type GridViewInfo??

How would i create a new instance of this type.

I was hoping to do all of this in code.

Any help is appreciated.
Jack
Telerik team
 answered on 03 Oct 2007
5 answers
354 views
I'm using theme Office2007Blue with the datetimepicker. The forecolor of the the date text is greyish. I'd like to have it black. Had a look in the theme manager but can't find the setting for this. 
Trayko Stoilov
Telerik team
 answered on 03 Oct 2007
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?