Table1
Field1 Field2
0001 100
0001 200
0001 300
0002 001
0002 002
0003 003
How I can create treeview with vb 2008 sqlcommand by datareader as
Treeview
-0001
--100
--200
--300
-0002
--001
--002
--003
Thanks,
Teddy
I am new to RadControls but so far they work fine. I am not finding a reference that explains the prefered method for creating DocumentWindows for the RadDock Control using the Visual Studio form designer. My program could have any number of forms and are based on different "types" that I define. Before using RadDock, I would use the Visual Studio designer to create the basics for each type of form, then at run time dynamically add to and-or modify the base form for each instance required. Because I don't know in advance what types of forms will be displayed, I don't think adding form types to the RadDock control itself at design time is a useful approach. I found that if I use AutoDetectMdiChildren, if a DocumentWindow form is "hidden" when the user closes it and I re-show the form later, it is blank. To correct this I found the following works just fine.
First don't user AuoDetectMdiChildren.
Second in the "formname.Designer.vb" file make the following change....
'Inherits System.Windows.Forms.Form
Inherits Telerik.WinControls.UI.Docking.DocumentWindow
If I later want to modify the form with the Visual Studio form designer, I un-comment the first line and comment the second.
This is working without a hitch, but since I don't find any reference that describes the "proper method", I just wanted to ask if this sounds OK or if there is a better "recommended" pratice that I should be following. To summarize, I want to be able to visual modify DocumentWindow forms for the purpose of creating defined "types" of forms that my program can select from at runtime and the user needs the ability to hide and re-display these forms.
Thanks
Troy
this.radMultiColumnComboBoxMachineEventWorkerApproved.DataSource = this.bindingSourceWorkers; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.ValueMember = "idWorker"; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.DisplayMember = "surname"; |
foreach (var column in this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns) |
{ |
column.IsVisible = false; |
} |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["idWorker"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["name"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["surname"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["PESEL"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["name"].HeaderText = "ImiÄ™"; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["surname"].HeaderText = "Nazwisko"; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["PESEL"].HeaderText = "Pesel"; |
// ------------ now I try to change value |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.SelectedValue = 5; |
var selectedValue = this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.SelectedValue; |
Hello,
I have a RadCalendar where I can multiselect individual dates or by row. The problem is when I click a rowheader it deselects any previously selected date(s). I need the ability to select multiple weeks not necessarily next to each other. Can anyone help me on keeping the previous selected dates when clicking on a rowheader?
Any help appreciated!
Thanks in advance.