I have to select more than one value from Checkboxlist and save them in Gridview....
I have checkboxlist which is having UG,PG,PhD/Mphil values in it...
I have to select more than one from the checkboxlist and display them in single cell of the Gridview...
How to do...
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
int index = Convert.ToInt32(e.CommandArgument);
string Education = GridView1.Rows[index].Cells[6].Text.Trim();
if (Education== "Diploma")
{
Edu_ChkBxLst.SelectedItem.Text = GridView1.Rows[index].Cells[6].Text.Trim();
}
if (Education== "UG")
{
Edu_ChkBxLst.SelectedItem.Text = GridView1.Rows[index].Cells[6].Text.Trim();
}
if (Education== "PG")
{
Edu_ChkBxLst.SelectedItem.Text = GridView1.Rows[index].Cells[6].Text.Trim();
}
if (Education== "MPhil/PhD")
{
Edu_ChkBxLst.SelectedItem.Text = GridView1.Rows[index].Cells[6].Text.Trim();
}