If you can use a javascript property then it woud be very easy. Use <hyperlink:column> and for each colum assign an attribute like
for (int rowPos = 0; rowPos < dg.Items.Count; rowPos++)
{
for (int colPos = 0; colPos < dg.Items[rowPos].Cells.Count; colPos++)
{
dg.Items[rowPos].Cells[colPos].Attributes["onclick"] = "javascript:window.open('+dg.Items[rowPos].Cells[colPos].Text+'.aspx','displayWindow','toolbar=no,width=40 0,height=400,directories=no,status=no,scrollbars=n o,resize=no,menubar=no');return false;");
}
}
If you want it for a single column then just fix the colPos variable to your desired fixed value. I think it will work if you can handle javascript.Thanks....
Arindam Jha
|