Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

grid view without any data source date sorting problem

Posted: Dec/14/2010   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:216   Vote Up (0)   Vote Down (0)    

i grid view contain the following coloum

id    name         DateofBirth                  DateofJoining 

1       a            22-Aug-1980                      10-jan-2000

1       a            22-may-1980                      20-feb-2000

1       a            12-Feb-1980                      15-mar-2000

1       a            3-Aug-1980                      7-jan-2000

how to sort if we click   DateofBirth or Dateofjoining and not sort any where if we click(Id,Name)

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Grouping Data in the ListView Control

  
In ASP.NET 1.X and ASP.NET 2.0 DataList was the primary control used to display data in groups. In ASP.NET 3.5 we have a new control that takes care of grouping data. In this article we are going to demonstrate how to group data using the ListView control.

Selecting and Highlighting Multiple Columns in a Data Grid

  
Many times you want to select multiple columns in a DataGrid and highlight the columns selected.

In the DataGrid MouseDown Event you will find out if you have selected a column header through the hit test. You then find the co-ordinate of the column and construct a rectangle out of that. If you are selecting multiple columns you can store the index of the columns and the rectangle in ArrayList.

Make sure you clear the ArrayList when you HitType is None.

ASP.NET Ajax Grid and Pager

  
Learn how to create a custom Ajax Grid and Pager with the Microsoft ASP.NET AJAX platform. Introduction This article will show you how to create an AJAX Grid and a generic pager, which mimics the built-in GridView control on the client side. Features The Control(s) Provides: .Able to bind to any web service call that returns an array. .A GridView like API on the client side. .Able to AutoGenerate Columns based upon the dataSource. .Support for Sorting and Paging where developer can spawn his/her own logic. .Full VS Design Time Support. .Supports Column Drag and Drop. .Compatible with all major browsers including IE, Firefox, Opera and Safari.

problem in outlook

  

hello i am facing a problem in microsort outlook 2003.

i have an email template in html in which i am sending data from asp.net page and according to condition making display:none of sm <tr> dymamically.

it is working fine when received in outlook. but when we press forward button to forward mail

then hidden rows also displays.

Any idea to get rid of this problem.

Please suggest me



How to keep rigth data in cache

  

Hi,

I would want to know what is better: to keep a lot of data in cache at once or to keep a little data by paging?

 

For example:

I have 1000 articles and 200 pages.


send alert message to user if close internet browser before save web form data

  

 Hi, I have window form to let user fill data, I want to alert user if close web browser before saved web form data, could anyone provide any clue?

 

Thanks,

Martin


Strange problem with a button in a repeater

  

I've got a Imagebutton in a repeater.
Code:

<asp:Repeater ID="repImages"  runat="server">
                    <ItemTemplate>                       
                        <div>
                            <div><asp:ImageButton ID="btnDeleteImage" Width="7" Height="7" runat="server" AlternateText="Verwijder afbeelding"  OnClientClick="return confirm('Weet u zeker dat u deze afbeelding wil verwijderen?');" OnClick="ImageButton_OnClick" ImageUrl="~/images/spacer.gif" /></div>
                            <img id="imgImage" runat="server" src='<%# GetOccasionPath(int.Parse(Eval("ID").ToString()),Eval("BaseFileName").ToString(), TypeImage.thumbnail) %>' />
                        </div>
                    </ItemTemplate>
                </asp:Repeater> 

 

It is displayed well, but if i press the button btnDeleteImage he doesn't even run ImageButton_OnClick , also there is no data included just for testing...
protected void ImageButton_OnClick(object source, EventArgs e)
    {
       
    }

 

But still i get this error:

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Also enableEventValidation="true" is placed in the page.
What can i do to solve this?


How to display dynamic XML data inside a Panel control?

  

Hi all,

I have a SQL routine which builds me an entire XML file and returns it as a string. 
If I save the content of this file as sample.xml for instance, I am able to open it in IE or any other browser and the user can expand the nodes and see all the content he wishes.

I am trying to build a ASP.Net page which will display the content of a XML file in the same way (or similar) that the browsers do.

So far, I've been reading some posts and noticed I can use XmlDataSource control and its Data property to load the entire XML doc as a string. Now I am stuck how to display the contents. I found TreeView very confusing and not sure if DataGrid would be a alternative as well. I need to user to be able to open and expand the nodes.

Please someone point me to the right direction. What controls to use, etc... sample codes are the best ;-)

Thank you

 


Validation metadata problem in MVC3 R2 with class inheritance

  

HI

My project upgrade to MVC3 R2, but there is a problem with validation metadata when the model inherit from other class.  In MVC2 all the child class will inherit the validation metadata, but in MVC3 R2, it will be not include the validation metadata of parent class. Is this expected?


SVN problem

  

Hello

I am using Visual SVN Server and Tortoise SVN as a Client. 

After I get update and ascx file is merged visual sdutio displays warning and I must set merged file line encoding.

The line endings in the following file are not consistent. Do you want to normalize line endings?


I believe that it's due to default SVN merge tool or visual svn behaviour for currently opened files. 



 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge