C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

datagrid


Posted Date: 27 Aug 2008      Posted By: sivakumar      Member Level: Gold     Points: 1   Responses: 1



hi friends

i need grid like this
link : http://demos.devexpress.com/ASPxGridViewDemos/Filtering/HeaderFilter.aspx

dragable colomns and sorting and filter options. thanks





Responses

Author: mythili d    27 Aug 2008Member Level: SilverRating: 4 out of 54 out of 54 out of 54 out of 5     Points: 6

You do a view source on that page and get all the html code to generate a page like that. I did that , they are using java script. You can also use an ajax update panel to get the partial page uploads.
1)Drag and drop a gridview control from the tool box and in the properties section for the grid enable sorting and paging,empty data text and the method names for the events that get raised because of paging sorting, etc. Te control would look like this.
<asp:GridView id="gvSearchItems" runat="server" CssClass="dataview" __designer:wfdid="w149" OnPageIndexChanged="gvSearchItems_PageIndexChanged" OnSorting="gvSearchItems_Sorting" AllowSorting="True" OnRowDataBound="gvSearchItems_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvSearchItems_PageIndexChanging" EmptyDataText="0 records returned" OnRowEditing="gvSearchItems_RowEditing" BorderWidth="1px" BorderStyle="Solid" BorderColor="Black" AutoGenerateColumns="False" DataKeyNames="ItemID"></as:GridView>
2) to this add the columns either by the visual studio help using the properties section or by manually typing them in. Everything that you want to update should be in a template field.
like first create the column and in the properties section go to the datacolumns section and convert them into template fields add those buttons to edit and write update procedures.
3) for the partial page update put entire grid in the ajax update panel control and select the update mode to be conditinal and in methods paging ,sorting and update after all the steps for update/paging/sorting bind the grid with the data source and then update the update panel also.

hope this helps.
Thanks



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : grid
Previous : Window service Connect Mysql for file monitoring
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use