Click here to Skip to main content
15,912,977 members
Home / Discussions / Database
   

Database

 
GeneralRe: Using MSDE Pin
TheJudeDude27-Jan-06 2:31
TheJudeDude27-Jan-06 2:31 
GeneralRe: Using MSDE Pin
Paul Conrad27-Jan-06 3:45
professionalPaul Conrad27-Jan-06 3:45 
GeneralRe: Using MSDE Pin
TheJudeDude28-Jan-06 9:17
TheJudeDude28-Jan-06 9:17 
GeneralRe: Using MSDE Pin
Paul Conrad28-Jan-06 17:18
professionalPaul Conrad28-Jan-06 17:18 
Questionrunning out of swimming *pool* space..... ??? Pin
WetRivrRat26-Jan-06 11:05
WetRivrRat26-Jan-06 11:05 
AnswerRe: running out of swimming *pool* space..... ??? Pin
Colin Angus Mackay26-Jan-06 12:42
Colin Angus Mackay26-Jan-06 12:42 
GeneralRe: running out of swimming *pool* space..... ??? Pin
WetRivrRat27-Jan-06 10:15
WetRivrRat27-Jan-06 10:15 
QuestionHow to sort a column in data grid: Pin
kenn_rosie26-Jan-06 4:32
kenn_rosie26-Jan-06 4:32 
How to sort a column in data grid:

I want to sort on the column "LoanNumber"

In my ASP code shown below, I added AllowSorting property to True, in the
DataGrid.Which gives me the hyperlink in the header.
In order to have this happen I need to do two things: create a
sort event handler and specify the event handler for the
DataGrid's sort event.

I created the sub SortEventHandler as below but I am lost as to
what is next to do?



Sub SortEventHandler(sender as Object, e as DataGridSortCommandEventArgs)
...
End Sub


<asp:datagrid id="DG1" runat="server" backcolor="Gainsboro" autogeneratecolumns="false"
onitemcommand="DGColumnBtn"
="" width="512px" allowsorting="True">
<edititemstyle backcolor="Red">
<alternatingitemstyle backcolor="#C0FFFF">
<headerstyle backcolor="Silver">
<alternatingitemstyle backcolor="White">
<columns>
<asp:buttoncolumn text="Details" headertext="Credit Life" buttontype="PushButton">
<asp:boundcolumn datafield="clid" visible="False">
<asp:boundcolumn datafield="CLMaturityDate" dataformatstring="{0:MM-dd-yyyy}" headertext="MAT Date">
<asp:boundcolumn datafield="LoanNumber" headertext="LoanNumber" sortexpression="LoanNumber">
<asp:boundcolumn datafield="Loanamount" headertext="Amount">






Private Sub DG1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DG1.SelectedIndexChanged

End Sub
AnswerRe: How to sort a column in data grid: Pin
S Douglas30-Jan-06 22:48
professionalS Douglas30-Jan-06 22:48 
QuestionLimits on SQL Statements Pin
BadKarma26-Jan-06 1:38
BadKarma26-Jan-06 1:38 
AnswerRe: Limits on SQL Statements Pin
Dave Kreskowiak26-Jan-06 7:06
mveDave Kreskowiak26-Jan-06 7:06 
GeneralRe: Limits on SQL Statements Pin
BadKarma27-Jan-06 3:14
BadKarma27-Jan-06 3:14 
GeneralRe: Limits on SQL Statements Pin
Dave Kreskowiak27-Jan-06 18:06
mveDave Kreskowiak27-Jan-06 18:06 
GeneralRe: Limits on SQL Statements Pin
BadKarma30-Jan-06 3:12
BadKarma30-Jan-06 3:12 
GeneralRe: Limits on SQL Statements Pin
Dave Kreskowiak30-Jan-06 5:44
mveDave Kreskowiak30-Jan-06 5:44 
AnswerRe: Limits on SQL Statements Pin
AntonGogolev26-Jan-06 23:05
AntonGogolev26-Jan-06 23:05 
Questionusing DataTable in place of DataSet Pin
Himalay Oza25-Jan-06 3:38
Himalay Oza25-Jan-06 3:38 
AnswerRe: using DataTable in place of DataSet Pin
Paul Conrad25-Jan-06 6:28
professionalPaul Conrad25-Jan-06 6:28 
Questiondataview and databinding ? Pin
Isabel oliveira24-Jan-06 14:40
Isabel oliveira24-Jan-06 14:40 
QuestionImport Cast Error in SQL Server 2005 Pin
Tiger45623-Jan-06 18:55
Tiger45623-Jan-06 18:55 
Questiontable construction/design question Pin
Jim Crafton23-Jan-06 15:36
Jim Crafton23-Jan-06 15:36 
AnswerRe: table construction/design question Pin
Rob Graham23-Jan-06 17:14
Rob Graham23-Jan-06 17:14 
GeneralRe: table construction/design question Pin
Jim Crafton24-Jan-06 2:47
Jim Crafton24-Jan-06 2:47 
GeneralRe: table construction/design question Pin
Jim Crafton26-Jan-06 16:20
Jim Crafton26-Jan-06 16:20 
GeneralRe: table construction/design question - RESOLVED Pin
Jim Crafton26-Jan-06 17:54
Jim Crafton26-Jan-06 17:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.