protected void dgQuery_ItemDataBound(object sender, DataGridItemEventArgs e)
{
if (( != ) && ( != ))
{
DataRow drRow = ((DataRowView)).Row;
string commonPartId = drRow["cniBackup1"].ToString();
HyperLink hlTrans = (HyperLink)("hlTrans");
if (hlTrans != null)
{
= "--";
= "javascript:void();";
}
//Delete the column
LinkButton btnDelete = (LinkButton)("btnDelete");
//No delete permission and the control is found
if (!bCanDelete && btnDelete != null)
{
//Find the Cell column number where the control is located
for (int i = 0; i < ; i++)
{
if ([i].HasControls() && [i].(btnDelete) > 0)
{
int index = [i].(btnDelete);
[i].(index);
Literal tips = new Literal();
= "--";
[i].(index, tips);
//[i].Text = "--";
break;
}
}
}
}
}