>Hi everybody,
>
>How can I add a tooltip to the Link button inside a GridView?
>
>Also why changind display from block to none makes control to be displayed left-aligned?
>
>Thanks a lot in advance.
Ok, since nobody wants to help, I would have to help myself.
This works quite nicely:
link.ToolTip = "Remove " +
e.Row.DataItem.ToString() + " from the " +
this.drpSelRole.SelectedValue + " role";
link.Attributes["onclick"] =
"SetValue('" +
this.HiddenField1.ClientID + "','" +
e.Row.DataItem.ToString() +
"');HideElement('" + this.lblProfStat.ClientID +
"');return confirm('Do you want to remove " +
e.Row.DataItem.ToString() + " from role " +
this.drpSelRole.SelectedValue + "?' );";
link.CommandArgument = "RemUser";
Getting there..., though quite slowly...
The center problem still remains, though, so perhaps somebody wants to give it a shot?
Thanks in advance.
BTW, the problem only shows in FireFox. When I switch display to IE (in FireFox), the combo and grid are centered correctly.
If it's not broken, fix it until it is.
My Blog