Click here to Skip to main content
15,915,336 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Can I have projects in vs 2003 and 2005 in one solution? Pin
VenkataRamana.Gali11-Apr-06 10:01
VenkataRamana.Gali11-Apr-06 10:01 
AnswerActually the answer is no but... Pin
JUNEYT11-Apr-06 11:52
JUNEYT11-Apr-06 11:52 
GeneralRe: Can I have projects in vs 2003 and 2005 in one solution? Pin
Guffa11-Apr-06 13:16
Guffa11-Apr-06 13:16 
QuestionProblems loading an Assembly Pin
hertz_j11-Apr-06 8:34
hertz_j11-Apr-06 8:34 
Questionbtrees demo implementation using VB.NET Pin
keshav v kamat11-Apr-06 8:04
keshav v kamat11-Apr-06 8:04 
QuestionDigital Signature Problem.. Pin
kantCodeAlik11-Apr-06 7:28
kantCodeAlik11-Apr-06 7:28 
AnswerRe: Digital Signature Problem.. Pin
kantCodeAlik11-Apr-06 9:25
kantCodeAlik11-Apr-06 9:25 
QuestionSorting Problem in GridView with Pagng *** urgent Pin
VenkataRamana.Gali11-Apr-06 6:48
VenkataRamana.Gali11-Apr-06 6:48 
Hello all,

I am using asp.net 2.0 GridView control. This grid is enabled Paging, i.e like this...
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)<br />
   {<br />
       GridView1.PageIndex = e.NewPageIndex;<br />
       BindMessageGrid();<br />
   }<br />
. This is working fine.
This Grid is having 3 columns(Name,Suject,Date) I am sorting the columns like this...
<br />
protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)<br />
    {<br />
        int index = GridView1.PageIndex;<br />
        DataTable dt = GetDataTable();<br />
        DataView dv = new DataView(dt);<br />
        <br />
        dv.Sort = e.SortExpression + " " + GetSortDirection();<br />
        GridView1.DataSource = dv;<br />
        GridView1.DataBind();<br />
        GridView1.PageIndex = index;<br />
    }<br />

This Grid is showing 3 pages. When I click on first page first column(Name), first it is showing in Descending(i.e Z,Y...A) with same 3 pages.

Problem is here...
Now if i will go 2nd page. it is resetting the page.

my Problem is when click on firtColumn sort(by Name) it has to show 3rd page contents in 1st page. if i will go 3rd page, it has to show 1st page contents.

How to Handle this?

anybody any solutions. plz help me will be appriciated





regards
GV Ramana
Questionlike creating controls in run time Pin
thruman611-Apr-06 6:35
thruman611-Apr-06 6:35 
AnswerRe: like creating controls in run time Pin
Dave Kreskowiak11-Apr-06 17:36
mveDave Kreskowiak11-Apr-06 17:36 
Questioncopy a table from SQL SERVER to Access DataBase Pin
Sheel Gohe11-Apr-06 4:22
Sheel Gohe11-Apr-06 4:22 
AnswerRe: copy a table from SQL SERVER to Access DataBase Pin
Dave Kreskowiak11-Apr-06 17:34
mveDave Kreskowiak11-Apr-06 17:34 
QuestionRelocating Objects Pin
tibmark11-Apr-06 2:58
tibmark11-Apr-06 2:58 
GeneralRe: RELOCATING OBJECTS Pin
Guffa11-Apr-06 3:15
Guffa11-Apr-06 3:15 
Questionwindows media encoder Pin
percyvimal11-Apr-06 2:55
percyvimal11-Apr-06 2:55 
QuestionIncluding dlls in an exe Pin
hertz_j11-Apr-06 0:07
hertz_j11-Apr-06 0:07 
AnswerRe: Including dlls in an exe Pin
Colin Angus Mackay11-Apr-06 0:29
Colin Angus Mackay11-Apr-06 0:29 
GeneralRe: Including dlls in an exe Pin
hertz_j11-Apr-06 0:49
hertz_j11-Apr-06 0:49 
AnswerRe: Including dlls in an exe Pin
kasik11-Apr-06 4:42
kasik11-Apr-06 4:42 
GeneralRe: Including dlls in an exe Pin
hertz_j11-Apr-06 8:17
hertz_j11-Apr-06 8:17 
QuestionVisula Basic 6.0 Run Time Error : 402 Pin
noshaba mariam10-Apr-06 21:29
noshaba mariam10-Apr-06 21:29 
AnswerRe: Visula Basic 6.0 Run Time Error : 402 Pin
Dave Kreskowiak11-Apr-06 13:37
mveDave Kreskowiak11-Apr-06 13:37 
GeneralRe: Visula Basic 6.0 Run Time Error : 402 Pin
noshaba mariam11-Apr-06 17:52
noshaba mariam11-Apr-06 17:52 
Questionsession problem Pin
Amit Agarrwal10-Apr-06 19:40
Amit Agarrwal10-Apr-06 19:40 
AnswerYour question is not directly related to vb.net Pin
JUNEYT11-Apr-06 11:44
JUNEYT11-Apr-06 11:44 

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.