Datagrid Sorting

  • Thread starter Thread starter Prakash
  • Start date Start date
P

Prakash

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top