T
tshad
I have been trying to figure out what the Datagrid is doing to create its
formatting.
I found that some of my Datagrids have a 3D type of border and sometime it
has a straight line. I finally found that it comes down to whether there is
a "rules=all" attribute (which gives me just a thin black line). If that
attribute is not there, you get a 3D effect.
I haven't yet been able to figure out what causes it. Here is the table def
that has the rules in it:
<table cellspacing="0" cellpadding="3" rules="all" border="1" id="DataGrid1"
style="margin: 5px 5px 5px 5px; padding: 5px;">
The DataGrid is defined as:
<asp
ataGrid AllowPaging="false"
AllowSorting="True"
AutoGenerateColumns="false"
CellPadding="3"
CellSpacing="0"
ID="DataGrid1"
runat="server"
ShowFooter="false"
ShowHeader="true"
OnSortCommand="SortDataGrid"
borderstyle="none"
style="margin: 5px 5px 5px 5px; padding: 5px;"
I have borderStyle as "none" here and I still have a border - why is that?
And what causes the "rules" attribute?
Thanks,
Tom
formatting.
I found that some of my Datagrids have a 3D type of border and sometime it
has a straight line. I finally found that it comes down to whether there is
a "rules=all" attribute (which gives me just a thin black line). If that
attribute is not there, you get a 3D effect.
I haven't yet been able to figure out what causes it. Here is the table def
that has the rules in it:
<table cellspacing="0" cellpadding="3" rules="all" border="1" id="DataGrid1"
style="margin: 5px 5px 5px 5px; padding: 5px;">
The DataGrid is defined as:
<asp
AllowSorting="True"
AutoGenerateColumns="false"
CellPadding="3"
CellSpacing="0"
ID="DataGrid1"
runat="server"
ShowFooter="false"
ShowHeader="true"
OnSortCommand="SortDataGrid"
borderstyle="none"
style="margin: 5px 5px 5px 5px; padding: 5px;"
I have borderStyle as "none" here and I still have a border - why is that?
And what causes the "rules" attribute?
Thanks,
Tom