I have problem with the gridview hyper link field.In the data gridview have data bound field ,hyperlinkfield ,check box column. When i checked the check box i can get the row cell value from bound field but not hyperlink field. It return a null string.
for (int i = 0; i < GridView1.Rows. Count; i++)
{
GridViewRow row = GridView1.Rows[i];
bool isChecked = ((CheckBox)row. FindControl("Ch eckBox1")).Chec ked;
if (isChecked)
{
string no = GridView1.Rows[i].Cells[1].Text;// this is the hyperlink field
string name= GridView1.Rows[i].Cells[2].Text;
string date =GridView1.Rows[i].Cells[3].Text;
}
}
?? please any idea...
for (int i = 0; i < GridView1.Rows. Count; i++)
{
GridViewRow row = GridView1.Rows[i];
bool isChecked = ((CheckBox)row. FindControl("Ch eckBox1")).Chec ked;
if (isChecked)
{
string no = GridView1.Rows[i].Cells[1].Text;// this is the hyperlink field
string name= GridView1.Rows[i].Cells[2].Text;
string date =GridView1.Rows[i].Cells[3].Text;
}
}
?? please any idea...
Comment