PC Review


Reply
Thread Tools Rate Thread

Datagrid Sorting

 
 
Prakash
Guest
Posts: n/a
 
      27th Oct 2004
I am creating new datagrid as web user control.
i am generating the columns of datagrid using the
CoundColumn method dynamically. after that i am added the
object of the column to the datagrid. i want to sort the
data. i am fiven the experssion like

Dim dummyCol as BoundColumn
dummyCol.SortExperssion = "Emp_Name"
dummyCol.DataSource = "Emp_Name"

I am written the code in
Sub dgCommon_SortCommand(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridSortCommandEventArgs)

End Sub

My Problem is When i click the sort comman in the datagrid
(Linkbutton) OnSortCommand is not Trigged

If possible please tell me why event is not fiering?

Regards
Prakash.C


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnV0Y2hpIFNhdHVsdXJp?=
Guest
Posts: n/a
 
      2nd May 2005
Hi Prakash, I am facing the same same problem. Did u find the solution to
your problem. if, so could you share with us.

Regards

"Prakash" wrote:

> I am creating new datagrid as web user control.
> i am generating the columns of datagrid using the
> CoundColumn method dynamically. after that i am added the
> object of the column to the datagrid. i want to sort the
> data. i am fiven the experssion like
>
> Dim dummyCol as BoundColumn
> dummyCol.SortExperssion = "Emp_Name"
> dummyCol.DataSource = "Emp_Name"
>
> I am written the code in
> Sub dgCommon_SortCommand(ByVal source As Object, ByVal e
> As System.Web.UI.WebControls.DataGridSortCommandEventArgs)
>
> End Sub
>
> My Problem is When i click the sort comman in the datagrid
> (Linkbutton) OnSortCommand is not Trigged
>
> If possible please tell me why event is not fiering?
>
> Regards
> Prakash.C
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid Sorting =?Utf-8?B?Qw==?= Microsoft ASP .NET 0 7th Jun 2006 07:58 PM
How do you map DataGrid rows to it's DataSource when sorting a DataGrid? aualias Microsoft Dot NET Framework Forms 2 13th Sep 2005 06:09 PM
No sorting event available when sorting DataGrid columns!!! =?Utf-8?B?TmFk?= Microsoft Dot NET Framework Forms 2 21st Apr 2005 02:47 PM
Datagrid and sorting. Alejandro Penate-Diaz Microsoft ASP .NET 2 18th Feb 2005 06:39 PM
Datagrid sorting Nikolay Petrov Microsoft VB .NET 1 30th Dec 2004 02:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:08 AM.