Forms Data Controls :: Horizontal Table Gridview?
May 31, 2010I need to display a table but in a horizonal manner, i should be able to catch the item selected event.
View 2 RepliesI need to display a table but in a horizonal manner, i should be able to catch the item selected event.
View 2 RepliesI have a gridview with around 250 columns which are generated automatically except first column which is fixed. Is there any way I can fix the first column but allow horizontal scrolling on remaining columns.
I have only 6 rows in gridview so don't need vertical scroll.Here is my code.
<div id="dvShipmentGrid" style="width: 1000px; padding-right: 10px;
I have a dataset which I bind to a gridview for display. Normally, the gridview shows the dataset table column name as the column header and the data is bound vertically - i.e. the dataset table rows are created in a vertical/downward fashion. What I would i like do however in my application is to get the GridView to bind in the horizontal direction. So the data that is bound "moves" towards the right. Before suggesting a repearter or datalist, I also have a requirement to not wrap. I have not been successfull getting the repeater/datalist not to wrap unless you know of a setting you can share.
View 1 Repliesi designed a gridview with HeaderStyle Freeze like this
<HeaderStyle CssClass="FreezeMe" Wrap="true" />
.FreezeMe
{
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: 13px;
position: relative;
top: expression(this.offsetParent.scrollTop);
z-index: 10;;
height:40px;
font-size:30px;
}
i have applied my gridview within DIV tag because i need horizontal scrool bar(if no. of record is high) but i didnt see the scrollbar ...
I need to set 1px Image as Horizontal and Vertical GridLines, gridBorder, HeaderSeperator in a GridView.
View 2 RepliesI m Using DataList Controll for the time being. But i wana use DridView Controll that should display Data Horizontally. Is it Possible? if Yes then How?
[Code]....
I want to display data in gridview in horizontal format (column wise). I mean similar to the RepeatColumns="Horizontal" format of the datalist.
View 6 Repliesi need to add vertical as well as horizontal scroll bar to grid view. i have read your artical about adding vertical scroll bar. how to add horizontal scroll bar ??
View 1 RepliesRefer here: [URL] ....
What If i have many fields to be included in the gridview, so in that case I need HORIZONTAL SCROLL BAR. But I can't fixed the headers...
I want to create a Horizontal menu, which will further contain dropdown menu.
View 6 RepliesI'm using a DataList to display photos in a TabSheet. The problem I get is that the div seems to get wider based on the # of pictures even though the pictures are not displayed and a scrollbar is.
[Code]....
I can't figure out what is causing this issue.
I have a datalist within a table and it scrolls horizontally. The data is set up to progress from past to future. By default the page loads with the table scrolled all the way to the left, and therefore displaying data which is furthest in the past. I would prefer for the table to load with the scroll bar in the middle, so that data at the split between past and future is displayed and the user can go further each way as he desires. how to set the focus within the table to let my datalist load exactly where I want it?
View 14 RepliesDid anybody do Database Driven - Horizontal and Vertical Nav without using XML?is it possible to bind menu control with query or view and pass query string to find particular horizontal nav and vertical nav?Please post working solution, i was trying for days to find a working solution. All the samples i tried is not working or it is too complex.i love to write and manage simple code.
View 1 RepliesI have to put my little details view controls (the 4 dates textboxes) side by side (horizontal align) to use more page space.what the best way to do this? javascript? DetailsView have an option to do this?
View 3 RepliesNewbie to ASP.net. Programming in C#.I'm querying a SQL database and displaying the results in a gridview. The results can be many records so I need to provide the facility to scroll vertically and horizontally. To display the headers when scrolling I have implemented ( in my asp code) the headers in another table and the data is in another table. I see now I cannot align the column headers with the table data.Appreciate any help to fix this issue. ( What I need is a similar to the freeze function in excel where you can freeze the header while scrolling horizontally and vertically)If this method is not a good one to display headers with data please suggest another methodHere is my ASP code.
<div id="divProjectTableHeaderFullDetail" runat="server" style="background-color: #993300;
height: 40px; width: 770px; margin: 0; padding: 0 ; " >
<table style="font-family: Arial; font-size: 10pt; color: white;" cellspacing="0"
[code]...
How can I change the treeview layout to display the data in colums orizontal instead of displaying them in a vertical manner?
View 4 RepliesIn the below written code content is render vertically and in one coulmn only.
<%@ 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>Untitled Page</title>......
A gridview is having 96 fields/columns retrieving data from an xml file.I need to gridlevel horizontal scrolling from 3 rd column keeping first two columns freeze .While scrolling horizontally (e.g. left to right), The column header have to move horizontally. Kindly guide me for the same. I got the scrollbars but now my issue is how to freeze first two columns of a gridview(for comparing values in one column with other column values)
<div style="overflow:scroll"></div>
[Code]....
Keeping Heading and Title column freeze and doing gridlevel horizontal scrolling for the rest.
How to display empty GridView to insert new record if no data retreived for some record on the result from data table?Actually i am trying to give a user an option to add recrod from Gridview. On result of some query it is perfectly displaying data and a footer row with the insertion textbox but when there is no data in the gridview it is not displaying. It should display with footer having insert textbox.
View 5 RepliesI have a GridView with some data in it. Now when I click on the Header text of any of the columns of the GV, the Gridview gets sorted according to the data in that column; however the order in which the data is represented in the database table remains the same. So whenever I am selecting some row in the GridView for performing any action on that row, it selects some different row in the database table.
EG: Say in GridView I have columns A B C with some data and say the corrressponding table in the database which stores these values, has columns A1 B1 C1when I click THE HEADER "A" in the GridView the GridView gets sorted according the data in that column, however this change is not reflected in the table in the database.. it still shows the data in the same order as when entered at the beginning.
I have a gap but I'm not sure how to remove it, which is between a table and a gridview:
[Code]....
By the way, how do you insert a screenshot to this post?
<table width="920px" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" class="TitleBar_lftCorner">
[code]...
I have a gridview that is populated with rows of 4 columns.
2 of the columns are required as parameters and I do not want these displaying so I coded visible = False.
The other 2 columns, whilst visible, I coded readonly = True, as all that is required is for the user to select a particular row of data, and select it for edit.Then, the update should be pressed.
I am using VB in Visual Studio 2008 and a ASP.NET web page.I have populated a gridview with data aquired from form data. For use in the current session. I am not bound to any database.I would like to pull the headers and also the data one row at a time.How can I do this?I thought I could just do something like myString=Gridview.SelectedRow.Cells.Item(1).Text
View 6 RepliesI am using an ADO Entity Model for my ms-sql database.
My database has a Resellers table which has ResellerID (primary key, int) and Name columns along with other data.
I also have an Orders table which contains OrderID (primary key, int), OrderDate, ResellerID (foreign key to Resellers.ReselerID).
If I just do a query like:
[Code]....
I am able to reference order.Reseller.Name just fine with no problems.
However I have an EntityDataSource on my page as follows:
[Code]....
Notice the Include="Reseller" attribute in the datasource... I also have a GridView tied to that datasource as follows: I cut some of it off for breavity:
[Code]....
Now what I have listed above will run with no errors, but what I want to do is replace the column that displays "ResellerID" with the equivilant to order.Reseller.Name. In other words I want my grid to display the reseller's name rather than the numeric ID.
I have tried to change the DataField to "Reseller.Name" but that will generate the following error:
A field or property with the name 'Reseller.Name' was not found on the selected data source.
Is there anyway to do this without me writing a custom select statement in my code behind?
I have created a gridView control and have successfully bound DataTable (dt) to it using
[Code]....
However, I want to add a dynamic hyperlink that will take the user somewhere based on the value of one of the columns in the selected row. I'm not sure how to do that.