我正在处理一个 asp.net 页面。我在其中使用网格视图。我希望能够更改绑定字段的宽度。我正在使用
ControlStyle-Width="100px"
,itemstyle-width
但无法更改绑定字段的宽度。谁能告诉我如何做到这一点?
<asp:BoundField DataField="ptDob" HeaderText="PatientDob" HeaderStyle-HorizontalAlign="Left" SortExpression="ptDob" ControlStyle-Width="2500px" />
<asp:BoundField DataField="memid" HeaderText="MemberId" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="100px"
SortExpression="memid" />
<asp:BoundField DataField="memssn" HeaderText="MembeSsn" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"
SortExpression="memssn" />
<asp:BoundField DataField="billType" HeaderText="BillType" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"
SortExpression="billType" />
<asp:BoundField DataField="insuranceName" HeaderText="insuranceName" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"
SortExpression="insuranceName" />
<asp:BoundField DataField="taxId" HeaderText="TaxId" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"
SortExpression="taxId" />
<asp:BoundField DataField="attendingProvider" HeaderText="AttendingProvider" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"
SortExpression="attendingProvider" />
<asp:BoundField DataField="parStatus" HeaderText="parStatus" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"
SortExpression="parStatus" />
<asp:BoundField DataField="admittedDate" HeaderText="AdmittedDate" HeaderStyle-HorizontalAlign="Left"
SortExpression="admittedDate" />
<asp:BoundField DataField="billedAmount" HeaderText="BilledAmount" HeaderStyle-HorizontalAlign="Left"