hello i want example code to select camera with combobox
i use RadWebCam winforms
hi
my code is
void BindGridDeviceName() { string select = "SELECT * from Device;"; using (IDbConnection connection = new SqlConnection(DataLayer.ConnectionClass.ConnectionDaynamic.GetConnectionString)) { var list = connection.ExecuteReader(select); DataTable dt = new DataTable(); dt.Load(list); ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DataSource = dt; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DisplayMember= "DeviceName"; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).ValueMember = "Id"; } }
------------------------------------
I want when my form is loaded
The first item or ID from the combo box for each row is in select(show)I do not want to be displayed by clicking on cells
like combobox.SelectedIndex
2-how to get value cValueMember = "Id" to insert database
thank
Hello All,
I have converted my Winforms C# Application to Telerik using the Telerik conversion extension tool in VS 2017 . It is converted but I see the events are not associated with the control even though the code exists in the code behind file.
Is this a known issue? Any suggestion or help is really appreciated.
Example: A Raddropdown list selected index change event is not tied to the Raddropdown. I see the event in the code behind.
cmbNewTipoUtente.ValueMember = "ID_TipoUtente"; |
cmbNewTipoUtente.DisplayMember = "Designacao"; |
cmbNewTipoUtente.DataSource = dt; //<- DataTable |
cmbNewTipoUtente.DataBindings.Add("SelectedValue", mNewTipoUtente, "ID_TipoUtente", true, DataSourceUpdateMode.OnPropertyChanged, null); |
protected void PopulateDropDown() |
{ |
DataTable topics = osa.GetAllTopicsForExistingAssessmentsDT(); |
radComboBox1.DataSource = topics; |
radComboBox1.DisplayMember = topics.Columns["topictext"].ColumnName; |
radComboBox1.ValueMember = topics.Columns["topicID"].ColumnName; |
} |