Fixing a row and column excel style in asp.net - asp.net

Is there a way to fix a column or row so when the user scrolls down or right, the first is always shown?
I'd need to replicate this excel feature in asp.net and am using a ListView control.
Is it at least doable in html? I'm open to any suggestion to accomplish this

This article explains how to do it using a Gridview and CSS only, but it does not appear to be compatible with Firefox.
This article explains how to do it with a GridView, a Control Adapter, and CSS.
This article explains how to do it by extending the GridView control. This one, to my eye, seems the best, simplest approach.
Telerik also has a GridView in their control toolkit that is capable of this. They have a demo here.

Related

In Which situation we should use repeater control or Grid View Control in asp.net

I manage a project and as you know asp.net has many types of data control, I am confused which control should be used in what condition. Which is better control in what situation. Should I still use repeater control because grid view is advance control.
A repeater allows you to have your items repeated both horizontally and vertically unlike a GridView which only by default repeat the items vertically.
The best way to understand the two is if you need a simple grid displayed use a gridview.
If you need to do additional formatting or display data from the database with additional graphics, labels, not in a grid type form than use a repeater. You can easily adjust the repeater to by as dynamic as you need it to be where as a grid view is a simple grid.
With a repeater you will click on the page SOURCE of the .Cs or .vb file and you will see 4 templates. Anything HTML you put in those templates will repeat with the data.
Around 2010 I ran into so much trouble with the GridView, I asked a (now former) Microsoft evangelist for advice. He strongly recommended not to use the GridView ever. Then I stopped and life got easier.

Paging in ASP.NET gridview

I am looking for paging in which I can enter values in a box to reach at desired page something like this.
I googled it. but could not find this. Help me if you have links or code.
I am working on asp.net 4.0.
Thanks
There's no out of the box functionality. To do that, you'd need to override the DataBound event of the gridview and add a custom pager row. This CodeProject tutorial or this article might get you started.
As told by Echilon i used CustomPager and used textbox instead of slider in it.

how to get started with using `GridView` in ASP.net?

How to get started with using GridView in ASP.net?
grid view is pretty slick especially in asp.net. You can check all the gridview tutorials on ASP DATA TUTORIALS.. it is the perfect place to start learning asp.net. If you don't want to learn then you can always add a sql database, insert a grid view and connect it to the data base via a datasource. Then you can play around with it. However i will strongly recommend those tutorials as they contain all tips and tricks you want to know. You can ask more questions here, i will be glad to answer.
And I inherited from the GridView to create the GridViewTree - a multi-column treeview server control. So reviewing this might give you some other ideas.
It can be found here.
Well, I have a few blog posts on the GridView:
Multiple Row Selections with CheckBoxes.
Checking All Rows Using Client-Side Script.
Attaching upload files to a record.
Sort Column Arrow Performance.
How to Work With a GridView Row in JavaScript.
All can be found here.

Scrollable Grid (Yahoo email like)

I was wondering if anyone knew of a scrollable gridview control that works similar to the yahoo email gridview.
If I were to guess, I'd say it's a highly customized YUI DataTable, so that might be worth checking out.
If you are using jquery I recommend jqgrid.
There is a nice grid component in extjs too.
And if you are looking for ASP.NET AJAX grid solution with yahoo-like scrolling, the Telerik grid may give you Yahoo-like deferred scrolling. Check out this demo on their site.
Dick
DHX's dhtmlxGrid control will do that as well. The basic edition is free.
They've got examples with 50,000 records, with and without paging.

Multi-column ComboBox

Can somebody please recommend a good multi-column combobox control for use in a Web Form? I'm quite disappointed to not find any multi-column support on the DevExpress ASPxComboBox control, unless I'm missing something.
I've found better luck exploring javascript controls than asp.net controls; especially if 'free' is a requirement. I haven't evaluated this control but it's one built with jQuery: http://code.google.com/p/jquerymulticolumnselectbox/
I'm using the telerik RadComboBox control. You can see an online demo of the multi-column functionality here.
We used a control from this article. No longer use it, but it was part of an aspalliance article and came with source code (VB.NET).

Resources