| Author: mythili d 27 Aug 2008 | Member Level: Silver | Rating:    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
|