Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2003, 11:22 PM
Authorized User
 
Join Date: Dec 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to suzila
Default Datagrid - pageindexchg

hello,

i've a problem and for those who know it pls help me.

on my form, u have to select 3 option from dropdownlist,
the problem is :
when i select any option, the datagrid will show me the data, some option have 1 page, another will have two. When i'm select any option(which have 2 pages), i can navigate to page no1,no2.BUT when i'm select option which have only 1 page, it will be problem.Sometime its work if u select the option which have 1 page first.

my code:


datagrid.CurrentPageIndex = e.NewPageIndex
comp.OleDbSelectCommand4.CommandText = ("Select name from student where course like '" & courses & "'")
comp.FillDataSet(Data1, comp.OleDbDataAdapter4)
datagrid.DataBind()
datagrid.EditItemIndex = -1



__________________
Suzila





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
Datagrid k.manisha ASP.NET 1.0 and 1.1 Professional 2 May 20th, 2008 07:18 PM
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Creating DataGrid In Repeater/DataGrid liduwan ASP.NET 1.0 and 1.1 Professional 9 March 6th, 2007 03:31 PM
datagrid ajaidass ADO.NET 2 March 1st, 2007 05:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.