or
private void Form1_Load(object sender, EventArgs e) { GridViewDataRowInfo row = this.radGridView1.Rows.AddNew(); } private void radButton1_Click(object sender, EventArgs e) { string name = radGridView1.Rows[0].Cells[0].Value.ToString(); if (radGridView1.Rows[0].Cells["Select"].Value.ToString() == "True") MessageBox.Show("Checked"); else MessageBox.Show("UnChecked"); }private void radPropertyGrid1_EditorRequired(object sender, PropertyGridEditorRequiredEventArgs e) { if (e.Item.Name == "TestSam") { PropertyGridSamEditor test = new PropertyGridSamEditor(); test.id = 1; e.EditorType = test.GetType(); } } public class PropertyGridSam2Editor : BaseInputEditor { public PropertyGridSam2Editor()
{ m_ID = 0; } public int m_ID { get; set; } public PropertyGridSam2Editor(int ID) { m_ID = ID; } public override object Value { get { RadDropDownListElement editor = (RadDropDownListElement)this.EditorElement; List<InfoSam> Isam = new List<InfoSam>(); if (m_ID == 0) { Isam.Add(new InfoSam(1, "Rouge")); Isam.Add(new InfoSam(2, "Bleu")); } else { Isam.Add(new InfoSam(3, "Bleu")); Isam.Add(new InfoSam(4, "Noir")); } editor.DisplayMember = "Couleur"; editor.SelectedValue = "ID"; editor.DataSource = Isam; return editor.Text; } set { RadDropDownListElement editor = (RadDropDownListElement)this.EditorElement; if (value != null && value != DBNull.Value) { editor.Value = value.ToString(); } else { editor.Value = "1"; } } } }
Dim datListProps As New DataSet
Dim sql As string = " SELECT gala_id_val_table FROM gala_mainTable "
AdaptSql = New OleDb.OleDbDataAdapter(sql, ConPubs)
AdaptSql.Fill(datListProps, "props_table")
Me.tabelaVotRadGridView.Columns.Add(lookUpColumn)

The following exception occurred in the RadGridView:System.NotSupportedException: The list must be an IBindingList to AddNew. at System.Windows.Forms.CurrencyManager.AddNew() at Telerik.WinControls.UI.GridViewRowCollection.Add(Object[] values)To replace this default dialog please handle the DataError event.Edit: Please remove this post. It turns out I needed to use a BindableList<T>. It turns out the List<T> support is not very strong in Q3 2009.