Hi all,
I have 2 different forms. 1 form(Form A) is to call another form (Form B)
Form B is initiated as a single instance.
Below is the code for Form A:
public partial class FieldList : Form
{
Form CreateField = new CreateField();
public FieldList()
{
InitializeComponent();
}
private void radButton1_Click(object sender, EventArgs e)
{
CreateField.ShowDialog();
}
}
Form B contains a radgridview with checkbox column.
When i click on any checkbox, it still looks fine. But when i close Form B, and opens up again,
the checkboxes in the checkbox column cant be clicked and sometimes when i click on 1 checkbox, another checkbox got checked instead.
Below is the Code for Form B:
public partial class CreateField : Form
{
public CreateField()
{
InitializeComponent();
LoadData();
}
public void LoadData()
{
gvUsers.Rows.Clear();
// (checkbox column, textbox column, boolean column)
gvUsers.Rows.Add(false, "User1", false);
gvUsers.Rows.Add(false, "User2", false);
gvUsers.Rows.Add(false, "User3", false);
gvUsers.Rows.Add(false, "User4", false);
gvUsers.Rows.Add(false, "User5", false);
}
}
Has anyone occurs this error before? The form has to be single instance as it is to be used with the SPRING framework.
Thanks and Regards,
Jack
I have 2 different forms. 1 form(Form A) is to call another form (Form B)
Form B is initiated as a single instance.
Below is the code for Form A:
public partial class FieldList : Form
{
Form CreateField = new CreateField();
public FieldList()
{
InitializeComponent();
}
private void radButton1_Click(object sender, EventArgs e)
{
CreateField.ShowDialog();
}
}
Form B contains a radgridview with checkbox column.
When i click on any checkbox, it still looks fine. But when i close Form B, and opens up again,
the checkboxes in the checkbox column cant be clicked and sometimes when i click on 1 checkbox, another checkbox got checked instead.
Below is the Code for Form B:
public partial class CreateField : Form
{
public CreateField()
{
InitializeComponent();
LoadData();
}
public void LoadData()
{
gvUsers.Rows.Clear();
// (checkbox column, textbox column, boolean column)
gvUsers.Rows.Add(false, "User1", false);
gvUsers.Rows.Add(false, "User2", false);
gvUsers.Rows.Add(false, "User3", false);
gvUsers.Rows.Add(false, "User4", false);
gvUsers.Rows.Add(false, "User5", false);
}
}
Has anyone occurs this error before? The form has to be single instance as it is to be used with the SPRING framework.
Thanks and Regards,
Jack