Forms Data Controls :: Make A Hierarchical Gridview With 1 Freeze Column?
Dec 4, 2010I want to make a hierarchical gridview with 1 freeze column.
i have freeze a column in general gridview but it was not working on internet explorer 8.
I want to make a hierarchical gridview with 1 freeze column.
i have freeze a column in general gridview but it was not working on internet explorer 8.
I trying to use below code in my app to freeze grid columns but its not working.The same code is working fine in the sample.I am using IE 8.
[URL]
<style
type
="text/css">
/* Div container to wrap the datagrid */
/* Div container to wrap the datagrid */
[Code]....
When i scroll the cursor the header and static need to static but content must scroll..
View 1 RepliesNo sense in showing a competely blank column. how to make a GridView column invisible if every cell in that column is empty?
View 3 RepliesI can get the file(image) to display, but it displays at a size that is too large for my use. Basically, right now, I'm pointing the ImageField to the first field in the grid that contains the url of the image. I could require the user to create a smaller image of the file but that seems a little excessive. Is there any way to control the size of the column displaying the image? Here is the html, we are using LINQ to get the data that is displayed in the grid.
[Code]....
I m getting 9 columns from database in a dataset but I want to diplay only 4 columns in datagrid. Remaining 5 columns values, I want to display in the textboxes below datagird.
I tried it making column invisible. If I make it invisible, I m not getting any value for that column to display in the textbox.
i have gridview that shows some information i want to have column that be autonumber shows the row number of gridview.for example i have 7 row in gridview it show 1 for first row ,2 second row,3 third row,... how can i do that?
View 3 Repliesi'm bindng data to gridview using bound field.one column of gridview is linkbutton.if the text is more than the cell width then the gridview width is increasing automatically.for ex if i have text like "microsoft asp.net forums" then it's displaying the whole text.but i need that text like "microsoft.....".how to display like this in gridview?
View 5 RepliesHow to set the GridView column fixed in width size whether there is data in the column cell or not. I try below code using "ItemStyle-Width" in the BoundField control to fix the column width but column became narrower if there is no data to display in it. Is this a no solution of ASP Gridview control ?
<asp:GridView
ID="GridView1"
runat="server"
AutoGenerateColumns="false"
Font-Names="Arial"
Font-Bold="true"......
I have GridViews in mostly all web-pages. If data rows are too much then by scrolling down the grid, header misses.
How to Freeze GridView Header like we do in MS Excel?
i m using a Gridview in my Page.Now i want to freeze the row Header of the gridview.
i did it with CSS its working fine In IE
the problem arise, when the same code is working in IE but nt in Opera and also Chrome..
solution for using it in cross browser.or else code for freezing the header wihtout the CSS style sheets..
i want it to use it with the properties of Gridview ..
How can i freeze grid view heading?
View 3 RepliesMy question is how to freeze specifi columns of Gridview control ? Freeze means...for example say if we are freezing the first column of grid then on scrolling a horizontal scroll bar of the grid will scroll all columns other than the first column. That means the first column will be visible always without any movement. But the first column should move if we use the vertical scroll bar.
View 1 Repliesi designed a gridview with the option of Freeze the header. below is the style i have applied in the headerstyle
background: #ecf5ff;
color: #333;
background-color: #6D91BF;
border-style: solid;
border-width: 1px;
border-color: #9cc9ed #5c9fde #6daddb #b4d2f0;
font-weight: bold;
text-align: center;
color: white;
text-decoration: none;
font-size: 12px;
position: relative;
top: expression(this.offsetParent.scrollTop);
z-index: 10;
but its not working in IE8 standard view but working in IE8 compatibility mode,
I bound the gridview having some fields(ID, StudName, City) Â and Display Button. When I click on the Disply button I approve the student and updation will happen.Â
Bu what happen the column ID is not in the sequence. Sometime it displays 1,2,3,4,5,6 ... Â next time it will display 7,8,9,10,11.... I want a sequence for the column ID. For that I used :Â
<%# Container.DataItemIndex+1 %>
and it is working fine.. But again I realize that these numbers are generating at runtime and i can't refer to that student. Also I don't want to display ID column on the grid view but I want to use on runtime generated column. [ i am using RowCommand for ID column ] How it is possible?Â
i have made a gridview which contains three fields, two textboxes and one combo box. ComboBox fetchs data from table(SQL) and when a combox box triggers, data related to combo must be added in two boxes. i did this throw another button, but i want this to be trigger directly when it clicks.
View 1 RepliesI want to display child rows in the datagrid after the + sign is selected (like grouping & outlining in excel). This is automatic in infragistic grids but when i did in asp (no more infragistics) it doesnt work. here is my code (very simple stuff)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
</form>
</body>
</html>
DataSet ds = new DataSet();
ds.Tables.Add(myDataAccess.ExecuteSelectCommand("uspCategories"));
ds.Tables[0].TableName = "tblCategories";
ds.Tables.Add(myDataAccess.ExecuteSelectCommand("uspProducts"));
ds.Tables[1].TableName = "tblProducts";
DataRelation rel = new DataRelation("relation", ds.Tables[0].Columns["CategoryID"], ds.Tables[1].Columns["CategoryID"]);
ds.Relations.Add(rel);
GridView1.DataSource = ds;
GridView1.DataBind();
I have developed an application using Visual Studio 2008. I have a hirerchical gridview and on every row i have a "Payment" button which actually inserts a payment entry in database. Here is the sample screen of that gridview so u have an idea what i am doing. Problem is that whenever user pressed the button of "PAYMENT" it is inserting multiple records in database..it should only fire once and i am failed to understand why its firing multiple times. Refer this link for my payment screen: [URL]
[Code]....
My code behind--------------------
[Code]....
I want to freeze the first 3 columns in my gridview. Â There are few solutions out there but they all have some formatting or browser issue.
View 1 RepliesI want to freeze my Header columns when Autogeneratecolumns=True. Â
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
[Code] .....
I have a gridview Control. In that control I need to show the headers when gridview is scrolling verticall. I tried your post from here [URL].... It's working in page loads.When I try to click any other buttons it's not working(it's showing all the records. I mean It's not scrolling). I have Add, Delete and reset buttons.
My gridview is with in update panel
<asp:UpdatePanel ID="uptGrid" runat="server">
<ContentTemplate>
<asp:HiddenField ID="hdnEditID" runat="server" />
<asp:Panel ID="pnlGrid" CssClass="cssPanel" runat="server" Height="250px" Width="100%"
Visible="False" ScrollBars="None"> <%-- ScrollBars="Vertical"--%>
<asp:GridView ID="grdData" runat="server" AutoGenerateColumns="False" HorizontalAlign="Left"
ForeColor="#333333" Font-Names="Courier New" Font-Size="12px" Width="100%" GridLines="None"
CellPadding="4" EmptyDataText="No record(s) Found" DataKeyNames="ID"
OnRowDataBound="grdData_RowDataBound" OnSelectedIndexChanged="grdData_SelectedIndexChanged">
I want to display gridview column heading when mouse over to the particular column in the gridview.I am working in VisualStudio 2005 with MS.Net2.0 framework.I don't want to use ajax.
View 4 Replies[Code]....
Main Gridview[Code]....
GridView, TemplateFields. Is there a way to have a column only appear in DataBound View, but not in Edit View? Leaving EditTemplate blank only blanks out the row, not the entire column.
View 1 RepliesI have a gridview which is binded to a Sqldatasource. I would like to replace a column data field value to 'Not Applicable' if that column has got a value of 2 in database.
View 2 Replies