how to add scrollbars to asp.net datagrid
-
how i can add scrollbars to datagrid so that sorting for the grid via headers is allowed ,header should be fixed and vertical scroll bar should start from first record. I read few articles pertaining to addition of scrollbars to aso.net datgrid,but they dont satisfy desired conditions. remember header should be fixed,sorting should be allowed via headers. plz give me the code vb.net if u can? Warm regards Rana
-
how i can add scrollbars to datagrid so that sorting for the grid via headers is allowed ,header should be fixed and vertical scroll bar should start from first record. I read few articles pertaining to addition of scrollbars to aso.net datgrid,but they dont satisfy desired conditions. remember header should be fixed,sorting should be allowed via headers. plz give me the code vb.net if u can? Warm regards Rana
-
-
i am using paging also but i got a textbox at the top of the grid so that user can view as many records as he can .To achieve this i direly require scrollbars.Header should be static and sorting must be enabled how to do this? Warm regards Rana
i have the same problem but i need the scrollbar Horizintally!
-
how i can add scrollbars to datagrid so that sorting for the grid via headers is allowed ,header should be fixed and vertical scroll bar should start from first record. I read few articles pertaining to addition of scrollbars to aso.net datgrid,but they dont satisfy desired conditions. remember header should be fixed,sorting should be allowed via headers. plz give me the code vb.net if u can? Warm regards Rana
My solution to adding a scrollbar to a DataGrid along with keeping a header with sort ability positioned at the top at all times is as follows: From HTML view I added a DIV for the Header tables and one for the DataGrid so the columns line up properly. I also included some CSS classes that I used in the tables to set the layour for the cells. From the Code Behind file you will need to set a datasource to the grid and control any sorting . Sorting can be controlled from the tablecells in the header table by putting linkbuttons in the place of the table cell labels. You can then call a sort routine with the column name to be sorted to get the sort result you want. I wish I could have made this a quicker response, but the process to get this done is a little cumbersome. Not impossible or difficult, just a bit messy. Hope this helps....
-
i have the same problem but i need the scrollbar Horizintally!