Click here to Skip to main content
15,893,486 members

Comments by raghu.g (Top 3 by date)

raghu.g 25-Jan-11 6:26am View    
Oh, I misunderstood the question.
raghu.g 21-Jan-11 9:37am View    
on click of check box in the grid view event add following code

protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
foreach(GridViewRow gr in GridView1.Rows)
{
if (((CheckBox)gr.FindControl("CheckBox2")).Checked == true)
{
sb.Append(gr.Cells[2].Text+",");

// 2 here the position of name in the grid view
}
}
ListBox1.Items.Clear();
ListBox1.Items.Add(sb.ToString());
}

I think this is what you are looking for
raghu.g 21-Jan-11 9:12am View    
how do you retrieve the names?
do you have the first name as a collection or what..??