J
John Dalberg
I am trying to center a checkbox in a datagrid column but the checkbox
always displays to the right. Below is the rendered html. I also used a
css-class with the same text-align: center attribute. The checkbox is used
in a TemplateColumn. Any ideas?
Also since a datagrid is rendered as an html table, how do I put custom
attributes in the <TD> tags since these tags are not in my aspx page?
Thanks.
<td>
<span style="text-align: center;"><input
id="dgLists__ctl3_active" type="checkbox"
name="dgLists:_ctl3:active" checked="checked" /></span>
</td>
John Dalberg
always displays to the right. Below is the rendered html. I also used a
css-class with the same text-align: center attribute. The checkbox is used
in a TemplateColumn. Any ideas?
Also since a datagrid is rendered as an html table, how do I put custom
attributes in the <TD> tags since these tags are not in my aspx page?
Thanks.
<td>
<span style="text-align: center;"><input
id="dgLists__ctl3_active" type="checkbox"
name="dgLists:_ctl3:active" checked="checked" /></span>
</td>
John Dalberg