S
sck10
Hello,
I am using a datagrid and am trying to control the column widths for each
column. Is this possible? I have tried using the following:
ControlStyle-BorderWidth="1000" with no apparent results.
temStyle-BorderWidth="200" with my column turning black.
ControlStyle-Width="200" with no apparent results.
Any help would be appreciated.
--
Thanks in advance,
sck10
Snippet:
--------
<!-- GridView: Show list of web documents -->
<asp:GridView ID="gvWebDocList" Runat="server" DataSourceID="dsWebDocList"
AutoGenerateColumns="False" AllowPaging="True" PageSize="40"
PagerSettings-Mode="Numeric"
CellPadding="3" HeaderStyle-HorizontalAlign="Center"
CssClass="sckArial_BlkM08"
RowStyle-CssClass="sckArial_BlkM08"
HeaderStyle-CssClass="sckArial_BlueB08"
HorizontalAlign="Left"
BorderWidth="1px"
RowStyle-BorderColor="#000000" RowStyle-BorderStyle="Solid"
GridLines="Both">
<Columns>
<asp:BoundField HeaderText="Doc Group" DataField="strWebDocGroup" />
<asp:BoundField HeaderText="Doc Type" DataField="strWebDocType" />
<asp:HyperLinkField
HeaderText="Title"
DataTextField="strWebAddress"
DataNavigateUrlFields="strWebAddress"
SortExpression="strWebAddress" />
<asp:TemplateField
headertext="Submitter">
<itemtemplate>
<a
href='mailto:<%#Eval("strOwnerEmail")%>'><%#Eval("strSubmitter")%></a>
</itemtemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
I am using a datagrid and am trying to control the column widths for each
column. Is this possible? I have tried using the following:
ControlStyle-BorderWidth="1000" with no apparent results.
temStyle-BorderWidth="200" with my column turning black.
ControlStyle-Width="200" with no apparent results.
Any help would be appreciated.
--
Thanks in advance,
sck10
Snippet:
--------
<!-- GridView: Show list of web documents -->
<asp:GridView ID="gvWebDocList" Runat="server" DataSourceID="dsWebDocList"
AutoGenerateColumns="False" AllowPaging="True" PageSize="40"
PagerSettings-Mode="Numeric"
CellPadding="3" HeaderStyle-HorizontalAlign="Center"
CssClass="sckArial_BlkM08"
RowStyle-CssClass="sckArial_BlkM08"
HeaderStyle-CssClass="sckArial_BlueB08"
HorizontalAlign="Left"
BorderWidth="1px"
RowStyle-BorderColor="#000000" RowStyle-BorderStyle="Solid"
GridLines="Both">
<Columns>
<asp:BoundField HeaderText="Doc Group" DataField="strWebDocGroup" />
<asp:BoundField HeaderText="Doc Type" DataField="strWebDocType" />
<asp:HyperLinkField
HeaderText="Title"
DataTextField="strWebAddress"
DataNavigateUrlFields="strWebAddress"
SortExpression="strWebAddress" />
<asp:TemplateField
headertext="Submitter">
<itemtemplate>
<a
href='mailto:<%#Eval("strOwnerEmail")%>'><%#Eval("strSubmitter")%></a>
</itemtemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>