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
|