i want to disable Footer gridlines in gridview.How can we do this
use <FooterStyle CssClass="FooterStyle" /> on your grid view and add .FooterStyle{border:0;} in your css
Related
The problem is that the website is very wide. A horizontal scroll bar is added and the width of the page becomes like 10000. The problem happens once I use treeview if the page style is RTL.
If I change the page to LTR or if I remove the treeview, the problem disappears.
Can anyone help?
set this property for treeview
SkipLinkText=""
<asp:TreeView ID="TreeView1" runat="server" SkipLinkText="">
</asp:TreeView>
I have created asp web page with asp panel as bellow
<asp:Panel ID="pnl" runat="server" ScrollBars="Horizontal">
</asp:Panel>
In IE Browser(8,9,10) it will always enable vertical scroll bars but Firefox is only show horizontal scroll bar.
In here I need only Horizontal scroll bars how to solve this problem?
try this. It's a HTML 5 property so it may work in modern browsers.
<asp:Panel ID="pnl" runat="server" style="overflow-x:scroll;">
I have a GridView with an ImageField and a ButtonField in it.
The Image is large .. but i want it to be displayed in a smaller size in the grid.. so I'm looking for a way to fix the cell size of my GridView.
How can I do this?
I had the same problem; solved it this way:
<asp:ButtonField ButtonType="Image" CommandName="EliminarFuente" HeaderText="Eliminar" ImageUrl="~/Themes/Images/Delete.png" >
<ControlStyle CssClass="BotonDeImagen"/>
<ItemStyle HorizontalAlign="Center" />
</asp:ButtonField>
The CSS class is like this:
.BotonDeImagen
{
width:25px;
height:25px;
}
and the result is a centered image of 25*25 pixels.
Alternative solution:
You could define height and width on the ControlStyle tag, instead of using a CSS class.
You can make set HighQualityBicubic InterpolationMode when you do the BinaryWrite
Checkout this example code.
Try using these two properties on your ImageField.
ItemStyle-Width=""
ItemStyle-Height=""
Explicity set the height and width of the image. Use CSS to control the size of the rendered tags.
Can we disable the gridview horizontal line ? I want to display grid without horizontal lines
help me thank you.
Set GridLines="None" on your GridView
Setting both:
BorderStyle="None"
and
GridLines="None"
on your Gridview will remove all of the lines.
use this code for your GridView to disable lines
GridView1.GridLines = GridLines.None;
The GridView renders as a table so wrap your GridView in a <div> with a class that sets the border of all contained <td> to 0
Kindness,
Dan
Try using this:
BorderWidth="0px"
I am using Vb.net for coding. I have a grid view control in which i want to introduce a vertical scroll bar if the value from the sql query overflows. How do I go about it?
You could place the gridview in a div with the following style:
overflow: auto; height: 80px;.
The following markup should do this. You'll need to change the height as required.
<div style="overflow-y:auto; height:200px">
<asp:GridView ID="GridView1" runat="server" >
</asp:GridView>
</div>