Please tell me what is wrong with my code?
Every time i set the .Text to null it gives error "Object reference not set to an instance of an object."
public Form1()
{
InitializeComponent();
DataTable dt = new DataTable();
dt.Columns.Add("TEST");
for (int i = 0; i < 5; i++)
{
dt.Rows.Add(Guid.NewGuid());
}
this.radMultiColumnComboBox1.DataSource = dt;
this.radMultiColumnComboBox1.Text = null;
}
private void radButton1_Click(object sender, EventArgs e)
{
this.radMultiColumnComboBox1.Text = null;
}
Every time i set the .Text to null it gives error "Object reference not set to an instance of an object."
public Form1()
{
InitializeComponent();
DataTable dt = new DataTable();
dt.Columns.Add("TEST");
for (int i = 0; i < 5; i++)
{
dt.Rows.Add(Guid.NewGuid());
}
this.radMultiColumnComboBox1.DataSource = dt;
this.radMultiColumnComboBox1.Text = null;
}
private void radButton1_Click(object sender, EventArgs e)
{
this.radMultiColumnComboBox1.Text = null;
}