or
radGridView1.CurrentRow.Cells[radGridView1.CurrentColumn.Name].Value.ToString()// // MachineTypeDropDownList // this.MachineTypeDropDownList.AutoCompleteDisplayMember = "M_Type"; this.MachineTypeDropDownList.AutoCompleteValueMember = "MachineID"; this.MachineTypeDropDownList.DataBindings.Add(new System.Windows.Forms.Binding("SelectedIndex", this.machineDataBindingSource, "MachineID", true)); this.MachineTypeDropDownList.DataBindings.Add(new System.Windows.Forms.Binding("SelectedItem", this.machineDataBindingSource, "M_Name", true)); this.MachineTypeDropDownList.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.machineDataBindingSource, "MachineID", true)); this.MachineTypeDropDownList.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.machineDataBindingSource, "M_Name", true)); this.MachineTypeDropDownList.DataSource = this.machineDataBindingSource; this.MachineTypeDropDownList.DisplayMember = "M_Type"; this.MachineTypeDropDownList.Location = new System.Drawing.Point(182, 52); this.MachineTypeDropDownList.Name = "MachineTypeDropDownList"; this.MachineTypeDropDownList.Size = new System.Drawing.Size(136, 20); this.MachineTypeDropDownList.TabIndex = 0; this.MachineTypeDropDownList.Text = "System.Data.DataViewManagerListItemTypeDescriptor"; this.MachineTypeDropDownList.ValueMember = "MachineID"; this.MachineTypeDropDownList.DataBindingComplete += new Telerik.WinControls.UI.ListBindingCompleteEventHandler(this.MachineTypeDropDownList_DataBindingComplete); this.MachineTypeDropDownList.Initialized += new System.EventHandler(this.MachineTypeDropDownList_Initialized);this.MachineTypeDropDownList.DropDownListElement.Items.Count
or
this.MachineTypeDropDownList.Items.Count private void MachineTypeDropDownList_DataBindingComplete(object sender, Telerik.WinControls.UI.ListBindingCompleteEventArgs e) { System.Diagnostics.Debug.WriteLine("this.MachineTypeDropDownList.DropDownListElement.Items --------------------------------" + this.MachineTypeDropDownList.DropDownListElement.Items.Count); System.Diagnostics.Debug.WriteLine("this.MachineTypeDropDownList.Items --------------------------------" + this.MachineTypeDropDownList.Items.Count); }private void MachineTypeDropDownList_Initialized(object sender, EventArgs e){}PrivateSubsnMain_NavigateBackwardsClick(senderAsObject, eAsEventArgs)HandlessnMainNav.NavigateBackwardsClickRangeStartDate = rsScheduler.ActiveView.StartDate.AddDays(-1)RangeEndDate = rsScheduler.ActiveView.EndDate.AddDays(1)exceptionTimes = GetSchedulerExceptionTimesByDateRange(, RangeStartDate, RangeEndDate)GetAppointmentsByDateRange()EndSubPrivateSubrsScheduler_CellFormatting(senderAsObject, eAsSchedulerCellEventArgs)HandlesrsScheduler.CellFormatting' Other CodeForEachExceptionInexceptionTimes'Block etcNextEndSub
I would like for my grid to autosize according to the form size. When the form is resized, I would like the grid to expand. Is there a setting for this anywhere?