Design - Elegant Ways Of Displaying A GridView With Lots Of Columns?

Jan 12, 2011

just a general design question that I'd like to hear some of your opinions on. I am designing a system for a client, and I'm using GridView' a lot. They need a lot of columns to be displayed in some of these, and I've had to resort to using a panel with a horizontal scrollbar. This presents some issues - keeping track of which row is which is difficult, even with alternating row colours, and it's generally pretty ugly.How have you dealt with these issues before?

View 1 Replies


Similar Messages:

Displaying AJAX Calendar Extender Two Ways?

May 11, 2010

Is there a way to set up the calendar extender so that the calendar displays when the text box recieves focus AND when the when the element with the "PopupButtonID" is clicked? With my current settings it seems to be one or the other.

View 2 Replies

Forms Data Controls :: Split Columns In Design Of Gridview?

Jul 14, 2010

I need to display data in gridview like this.
here Budget01...budget12 : Year1
Budget13...budget24 : Year2
Budget25...budget36 : Year3
Budget37...budget48 : Year4
Budget49...budget60 : Year5

my table(Budget) is having data like this

GLLink AccType Budget01 Budget02 ..... Budget13 Budget14
1 Expense 0 200 ....... 0 4000
2 Current Liability NULL NULL NULL NULL NULL

I need to display Budget01...budget12 as 1 year in one row,Budget13...budget24 : Year2 in another row..in gridview

View 4 Replies

Custom Server Controls :: Composite Control - Design Time Gridview Is Not Displaying?

Apr 19, 2010

I have use composite custome control its contain button and textbox and gridveiw

but design time gridview is not display .

View 1 Replies

Data Controls :: Displaying Database Records As Columns Instead Of Rows In GridView

Oct 17, 2012

I have Gridview Structure Like

CustId    EmailId  CheckBox(select) .. I want to display 10 records after that i want to display next to that records

CustId    EmailId  CheckBox | CustId    EmailId  CheckBox CustId    EmailId  CheckBox |

How can I display vertically..

View 1 Replies

Forms Data Controls :: Gridview Width / When Add Columns To Gridview The Width Shoots Out Of The Page And The Page Design Is Seems Ruined?

Feb 11, 2010

.I am new to asp.net.Is there any way we can limi the width of the gridview in the design mode.

I have to put 15-20 columns on the gridview.When I add columns to gridview the width shoots out of the page and the page design is seems ruined.

i placed it inside the panel and added scrol bars to it. it looks ok when debuggin i.e looks ok in internet explorer but in design mode it ruins the page design.

View 4 Replies

Forms Data Controls :: View Lots Of Text In GridView Cell?

Mar 11, 2011

I have a GridView where one of the colums has lots of text. Too much text to display because each rows then is almost half screensize each. Is there a way to just display the first words, and then have a function, perhaps mouse over to wiew the whole text? Tooltip maybe?

View 5 Replies

Forms Data Controls :: GridView Best Way To Display With Lots Of Words In A Column?

Dec 28, 2010

I like to use GridView because it is easy and flexible to work with. However, I found it quite frustration when it comes to display a column with a large chuck of words into the value of that particular column. Is there anyway to restrict how many words should only be display in a particular column rather than let it expands to cope up to display all the word. For example, I'm trying to display 20w and normally it would display

wwwwwwwwwwwwwwwwwww

but I would like to limit to 5 words in a line so it's going to be

wwwww
wwwww
wwwww
wwwww

View 6 Replies

Forms Data Controls :: Prevent Displaying " " On The Textbox Control If The GridView Columns Is Null?

Apr 7, 2010

How to prevent displaying this " " on the textbox control if the GridView columns is Null?

View 2 Replies

VS2010 Not Displaying Any Controls At Design Time?

Jan 15, 2011

I've just started working on some test asp.net webforms projects and am having a problem with VS2010. It is not displaying any controls at design-time. For every control I'm getting message -

Error Creating Control - xxxxx
Object reference not set to an instance of an object

It is doing it on new web.application and Tailspin Spyworks demo app. If I switch a new web.app from asp.net4 to asp.net3.5, all the controls display properly.

I've tried removing and re-installing VS2010 and had no changes.

It acts like something didn't get installed.

View 2 Replies

How To Do Design The Database Columns Or Handle The Click Event

May 14, 2010

I'm looking to create a survey with a Radio Button List and a submit button and then I want to store the result in a database. Not sure how to do design the database columns or handle the click event to write the survey answer to a database.

View 3 Replies

Data Controls :: Database Design For Multiple Columns

Jul 23, 2013

The user enter the  name,address,country,qualifiction,experience the user enter more than one qualification, and experience the add another button click will add another qualification, and experience...i am confused in designing the database  how to design the database for this . i am design this tables .

==employee table==                     ===Qualification==                       ==Experience===

 employee_id                                  qualificatin-id                                         Experience_Id
 employee_name                            University                                           Company
 employee_address                         Degree                                               Year-of-0experience
 employee_qualification                    End_Date                                             employee-id
employee_Experience                     employee-id

View 1 Replies

Forms Data Controls :: 2 Ways To Iterate Thru A Gridview?

Mar 31, 2011

I wrote(attempted) a sub to disable all linkbuttons in a column in my GV. It seems code #1 just disables the LB in 1 row only.

[Code]....

View 3 Replies

ASP MVC Elegant UI And ModelBinder Authorization?

Apr 29, 2010

We know that authorization's stuff is a cross cutting concern, and we do anything we could to avoid merge business logic in our views. But I still not find an elegant way to filter UI components (e.g. widgets, form elements, tables, etc) using the current user roles without contaminate the view with business logic. same applies for model binding.

Example
Form: Product Creation
Fields:
Name
Price
Discount
Roles:
Role Administrator

Is allowed to see and modify the Name field
Is allowed to see and modify the Price field
Is allowed to see and modify the Discount

Role Administrator assistant

Is allowed to see and modify the Name
Is allowed to see and modify the Price

Fields shown in each role are different, also model binding needs to ignore the discount field for 'Administrator assistant' role.

View 3 Replies

Forms Data Controls :: Adjusting Gridview Width Tried Many Ways?

May 7, 2010

adjusting Gridview width tried many ways?

[Code]....

[Code]....

[Code]....

[Code]....

View 3 Replies

Web Forms :: User Controls Not Displaying On Form At Design Time?

Jun 21, 2010

None of my user controls display on a web form at design time. At runtime they work fine and at design time to design the user controls themselve is fine.

Is there a setting that is telling the controls not to render at design time?

View 3 Replies

Looking For An Elegant Way To Upgrade Versioning Of JQuery Slowly?

Mar 8, 2011

We are wanting to upgrade from one version of jQuery to another. We use various online plug-in's and have written many of our own. The challenge now comes in the form of trying to SLOWLY MIGRATE all your scripted objects SLOWLY without a complete re-write. I have an idea on HOW to handle this:

BUT I HAVE QUESTIONS:

Is the idea below even a good idea? Can I (directly) tell each jQuery object where dependencies live?
If this is a bad idea...how do YOU handle it? Do I simply re-write EVERY object that happens to break upon upgrading? (sux!)

[Code].....

View 1 Replies

ADO.NET :: Accepting Unique Values Only: I Manage To Do It But Is There A More Elegant Way?

Sep 30, 2010

I'll try to make this concise. Anyways, I'm trying to only allow unique data to my database. my database. What I did before adding the entry is to use a Search Query for the value of the txtbox


"SELECT IDnum WHERE IDnum = '" & txtID & "'"

Then compare it with that of the txtbox.

IF objReader("IDNum") <> txtID.textbox then add the entry Else Display a Warning.

in the above code, I can detect the when the user entered an existing value. however, If the user entered a NEW (unique) value an error is Raised "Invalid attempt to read when no data is present" I hit the wall with this.So what I did, Since I can detect Duplicates and have errors when entering unique value, I used the

ON ERROR GOTO statement: I did it like this.

On Error Goto errHandler

If objReader("IDNum") = txtID.textbox then
lbl1.text = "Existing Record"
objReader.close() [code]....

The Code does what I need but its kinda long, I bet there is an elegant way to do this.

View 3 Replies

C# - GridView - Columns.Insert() Cause Data To Vanish On Postback But Columns.Add() Works OK?

Oct 13, 2010

I have a GridView that has several dynamic columns (I do not know how many at design time and it could be 0-12 columns, hence need for dynamic columns). I have the columns in the grid and data bound to them - works great. There are other standard, design-time TemplateField columns with TextBox controls in them. These are bound with values that the user can edit. The grid is posted back via a Submit button. My question is "Why does gv.Columns.Insert() cause all my TextBox data to be null on Postback, but gv.Columns.Add() works like a champ?"

protected void BuildColumns()
{
// The first column to begin to insert the columns in the GridView
int columnIndex = 5;
BoundField aoColumn = new BoundField();
aoColumn.HeaderText = "New Column 1";
gvMyGrid.Columns.Insert(columnIndex, aoColumn); // kills txtQuantity.Text on postback
gvMyGrid.Columns.Add(aoColumn); // works fine
columnIndex++;
foreach (MyEntity my in _myEntityCollection)
{
BoundField myColumn = new BoundField();
myColumn.HeaderText = String.Format("{0:d}", my.StartDate);
gvMyGrid.Columns.Insert(columnIndex, myColumn);
columnIndex++;
}
}

I then go on to assign values to these BoundFields in the _RowDataBound method and all of this works great. However, when I post back and try to reference some TextBox and they are all null. And yes, I have the BuildColumns() call wrapped in if (!IsPostBack) on Page_Load. Of course I would like to use .Insert() so that the columns can go in the proper location and not at the end of the Columns array.

View 1 Replies

Forms Data Controls :: Displaying Dynamic Columns With LINQ?

Jan 26, 2010

I have the following code:

[Code]....

With this code behind:

[Code]....

Initially, I wrote the GetTeamMember() method to display the FullName in the ItemTemplate.

Then as I wrote the EditTemplate, I needed to populate a DropDownList with a list of names (first and last). It was fairly easy using the LinqDataSource, however it currently only shows the LastName. I could write another method GetTeamMembers() to populate the ddlTeamMember with the data I want, but I thought maybe there's a better "LINQ" way.

So I'm looking for a better way to get FullName (i.e. Firstname + " " + LastName) into both lblTeamMember and ddlTeamMember.

Options I thought of are:

I could write a method GetTeamMembers() I write a StoredProc that returns the extra column Better way?

View 6 Replies

Forms Data Controls :: In Page User Able To Select Gridview Columns And It Will Hide Remaining Columns

Mar 18, 2010

in asp.net page user able to select gridview Columns, and it will hide remaining columns and that selection done by check box with column list bellow is Image link , what exactly I am looking for [URL] it look bellow after selection of column done [URL]

View 1 Replies

Hide Columns In GridView With Auto - Generated Columns?

Jan 19, 2010

GridView1.Columns.Count is always zero even SqlDataSource1.DataBind();

But Grid is ok I can do

for (int i = 0; i < GridView1.HeaderRow.Cells.Count;i++)

I rename request headers here but

GridView1.Columns[i].Visible = false;

I can't use it because of GridView1.Columns.Count is 0. So how can I hide them ?

View 5 Replies

Show Several Columns In Datasource As Autogenerate Columns In Gridview?

Jan 27, 2011

I have a datasource, which includes many columns, idealy, I need use a gridview to show:

1) first 3 columns: template fields, these fields depends on values in some columns of datasource. I use template fields, hard coded. works fine.

2) the other columns. This is I do not know how to do it. In the data source, there are about 10-20 columns data, each time, the # of columns of the data varies. idealy, I need show each of them as a seperated column in gridview. The entire data source may have 30 columns, but some of them are used in 1), and I only want show these 10-20 columns in gridview. Some columns in data source, I may not use them at all. is there a way to do this? or have to seperate them as a detail view style UI?

View 1 Replies

Forms Data Controls :: Displaying Totals For Columns In A Grid View?

Jul 13, 2010

I have developed my application using ASP.NET with Visual Basic. I have a table that contains 3 fields. The name of the table is "Customer" and the names of the fields are "Name", "Address", and "Amount". I have a gridview that displays these three columns. I want to summarize the value in the "Amount" column for each record and display the summarize value in the footer of the "Amount" column.

I added some code to the "ItemTemplate" and "FooterTemplate" of the template for the "Amount" field and wrote two functions One function adds the value of the "Amount" field to a variable called "TotalAmount" and the second function 'gets' the value stored in the "TotalAmount" variable.

I am not getting any error messages and all of the items are displayed in the gridview but I am not displaying anything at the bottom of the "Amount" column. What more do I need to do?

This is my code for the "Amount" template:

<asp:TemplateField
HeaderText="Amount"
SortExpression="Amount">
<EditItemTemplate>
<asp:TextBox
ID="TextBox1"
runat="server"
Text='<%# Bind("Amount") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label
ID="Label1"
runat="server"
Text='<%# Bind("Amount", "{0:c}") %>'>
<%#SumAmount(Eval("Amount")) %></asp:Label>
</ItemTemplate>
<FooterTemplate>
<%#GetTotalAmount() %></FooterTemplate>
<FooterStyle
BorderColor="Black"
BorderStyle="Solid"
/>
</asp:TemplateField>
This is the code in my .vp file
Dim TotalAmount as decimal 0.0
Function SumAmount(ByVal Amount
As
Decimal)
As
Decimal
TotalAmount = TotalAmount + TotalAmount
End
Function
Function GetTotalAmount()
As
Decimal
Return TotalAmount
End
Function

View 3 Replies

Forms Data Controls :: Datagrid - Displaying Specific Columns As A Dropdown

Mar 16, 2011

I have a datagrid which displays a list of user data, such as name, his or her status, age. I have created a list of rows of user data but where the column shows status for example Single, Married, i want it to create a dropdown list where i can easily change the user status by selecting it from a dropdown and clicking the update button at the top of the datagrid. The update button will update all records that have been changed not just from the dropdown. I assume the dropdownlist requires a columnbinding event but i can't find any straight forward tutorials.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved