Display Datagrid horizontally
-
-
Hello Friends ..This is Amit..and i want to use datagrid control in webpage..This control will display name and image ..Is it possible to display datagrid horizontally..detault view of datagrid is vertical...Tell me if u know..please...............
-
Hi Can you please explain your need in detail. Normally for displaying in Horizontal format,we use Datalist control.
hello...Actually I use 2 datalists say dtlist1 and dtlist2 and two pagers say pager1 and pager2 for each of them resp..and when the page is loaded dtlist2 is displayed by default. When user clicks on a button second dtlist2 is displayed...and after clicking on the pager for that datalist ..It shows first datalist i.e. dtlist1 ....becoz on page load dtlist2 is to displayed..To avoid such confict in pager..i decide to use datagrid which has its own pager..Then the problem occurs to show datagrid horizontally...Do u have any solution.....
-
hello...Actually I use 2 datalists say dtlist1 and dtlist2 and two pagers say pager1 and pager2 for each of them resp..and when the page is loaded dtlist2 is displayed by default. When user clicks on a button second dtlist2 is displayed...and after clicking on the pager for that datalist ..It shows first datalist i.e. dtlist1 ....becoz on page load dtlist2 is to displayed..To avoid such confict in pager..i decide to use datagrid which has its own pager..Then the problem occurs to show datagrid horizontally...Do u have any solution.....
-
hello...Actually I use 2 datalists say dtlist1 and dtlist2 and two pagers say pager1 and pager2 for each of them resp..and when the page is loaded dtlist2 is displayed by default. When user clicks on a button second dtlist2 is displayed...and after clicking on the pager for that datalist ..It shows first datalist i.e. dtlist1 ....becoz on page load dtlist2 is to displayed..To avoid such confict in pager..i decide to use datagrid which has its own pager..Then the problem occurs to show datagrid horizontally...Do u have any solution.....
hi Have 'Prev' and 'Next' LinkButtons outside the datalist. Then Add like <asp:datalist id="dl1" Runat="server" RepeatDirection="Horizontal" RepeatColumns="20" CellSpacing="7"> <ItemTemplate> -------Add ur Template Column---- </ItemTemplate> </asp:datalist> Then bind the Datalist with the datasource.For Previous and Next Buttons, maintain the PageCount in a Viewstate and for Prev,decrement it by 1 and for Next,increment it by 1. While binding the datasource,select the data from the db with respect to the ItemCount--from RepeatColumns,PageCount and TotalPageCount meaning that, the records which lies between the specified count given by ItemCount and pagecount,select the items from the db... Try this:)