Ask a Question related to ASP.NET General, Design and Development.
-
Hajime Kusakabe #1
DataGrid - sorting/paging problem
Hi.
I have created a datagrid (datagrid1) without any columns on a aspx page.
Then aspx.vb adds columns from a database.
It is somthing like this ....
==================================
Dim myBoundColumnEntryBy As New BoundColumn()
myBoundColumnEntryBy.DataField = "Entry By"
myBoundColumnEntryBy.SortExpression = "Entry By"
myBoundColumnEntryBy.HeaderText = "Entry By"
DataGrid1.Columns.Add(myBoundColumnEntryBy)
DataGrid1.DataSource = dv ' dv is a dataview.
DataGrid1.CurrentPageIndex = 0
DataGrid1.DataBind()
==================================
Everything working except Sorting/Paging features.
When I click the sorting or paging the whole datagrid disappear.
Any idea?
Thanks.
Haji
Hajime Kusakabe Guest
-
What's the easiest way to..user define class...datagrid..paging..sorting..
I have a large number of user define class objects and want display in a datagrid and able to perform paging and column sorting. It seems using... -
Datagrid does not respond to any sorting, dataview filtering, or paging events
This is my third VB.NET forum to try and help me with my problems and several people have failed so I am hoping someone here is a TRUE GURU on... -
Help with simple datagrid paging and sorting issue
Please help! I have a simple web app that displays some search fields, posts back to itself onclick of the search button, and shows the results... -
Dynamic columns in DataGrid, Paging/Sorting and Data Caching
Hi, I have a DataGrid that has no columns and that is populated with columns based on data obtained from DB during PageLoad in the following way:... -
How to bring paging, sorting and hyperlinking functioanlities in a datagrid?
Hi there, I just started asp.net code 3 days ago from now. I have a situation in one of my pages that i need to provide all three... -
Hajime Kusakabe #2
Re: DataGrid - sorting/paging problem
Sorry ... I forgot to mention this ...
When I click for sorting it does not get the subroutine
"DataGrid1_SortCommand" at all.
If I create the column in design mode (not runtime) then when I click for
sorting it calls the subroutine and do sorting.
Haji
"Hajime Kusakabe" <hajime.kusakabe@eimcoprocess.com> wrote in message
news:OMOhaBuVDHA.424@TK2MSFTNGP11.phx.gbl...> Hi.
>
> I have created a datagrid (datagrid1) without any columns on a aspx page.
> Then aspx.vb adds columns from a database.
>
> It is somthing like this ....
> ==================================
> Dim myBoundColumnEntryBy As New BoundColumn()
> myBoundColumnEntryBy.DataField = "Entry By"
> myBoundColumnEntryBy.SortExpression = "Entry By"
> myBoundColumnEntryBy.HeaderText = "Entry By"
> DataGrid1.Columns.Add(myBoundColumnEntryBy)
>
> DataGrid1.DataSource = dv ' dv is a dataview.
> DataGrid1.CurrentPageIndex = 0
> DataGrid1.DataBind()
> ==================================
>
> Everything working except Sorting/Paging features.
> When I click the sorting or paging the whole datagrid disappear.
>
> Any idea?
>
> Thanks.
> Haji
>
>
Hajime Kusakabe Guest
-
Saravana #3
Re: DataGrid - sorting/paging problem
Can you send your codebehind file code, actually where you are creating
columns for datagrid.
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"Hajime Kusakabe" <hajime.kusakabe@eimcoprocess.com> wrote in message
news:OMOhaBuVDHA.424@TK2MSFTNGP11.phx.gbl...> Hi.
>
> I have created a datagrid (datagrid1) without any columns on a aspx page.
> Then aspx.vb adds columns from a database.
>
> It is somthing like this ....
> ==================================
> Dim myBoundColumnEntryBy As New BoundColumn()
> myBoundColumnEntryBy.DataField = "Entry By"
> myBoundColumnEntryBy.SortExpression = "Entry By"
> myBoundColumnEntryBy.HeaderText = "Entry By"
> DataGrid1.Columns.Add(myBoundColumnEntryBy)
>
> DataGrid1.DataSource = dv ' dv is a dataview.
> DataGrid1.CurrentPageIndex = 0
> DataGrid1.DataBind()
> ==================================
>
> Everything working except Sorting/Paging features.
> When I click the sorting or paging the whole datagrid disappear.
>
> Any idea?
>
> Thanks.
> Haji
>
>
Saravana Guest



Reply With Quote

