Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid SortCommand event not triggered

Reply
Thread Tools

DataGrid SortCommand event not triggered

 
 
John Sturgeon
Guest
Posts: n/a
 
      11-26-2003
Hello:

When creating a dynamic datagrid (i.e. columns are not added until runtime),
and enabling allow sorting, the SortCommand event is never fired. Anyone
know why or a way around it? This is in .NET Framework 1.1 and VS.NET 2003.

Thanks,

John


 
Reply With Quote
 
 
 
 
Tommy
Guest
Posts: n/a
 
      11-27-2003
1. Try to enable viewstate on the datagrid
2. Try to create create the dynamic columns

Tommy,

"John Sturgeon" <> wrote in message news:<>...
> Hello:
>
> When creating a dynamic datagrid (i.e. columns are not added until runtime),
> and enabling allow sorting, the SortCommand event is never fired. Anyone
> know why or a way around it? This is in .NET Framework 1.1 and VS.NET 2003.
>
> Thanks,
>
> John

 
Reply With Quote
 
 
 
 
John Sturgeon
Guest
Posts: n/a
 
      12-02-2003
(Tommy) wrote in
news: om:

> 1. Try to enable viewstate on the datagrid
> 2. Try to create create the dynamic columns
>
> Tommy,
>
> "John Sturgeon" <> wrote in message
> news:<>...
>> Hello:
>>
>> When creating a dynamic datagrid (i.e. columns are not added until
>> runtime), and enabling allow sorting, the SortCommand event is never
>> fired. Anyone know why or a way around it? This is in .NET Framework
>> 1.1 and VS.NET 2003.
>>
>> Thanks,
>>
>> John

>


What do you mean by "Create Create" the dynamic columns?

Thanks,

John
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
SortExpression makes SortCommand event not to trig =?Utf-8?B?UGF1bA==?= ASP .Net 0 09-22-2005 06:36 PM
DataGrid SortCommand Event not fired on dynamically generated datagrid biru ASP .Net Web Controls 2 05-06-2005 01:38 PM
SortCommand and PageIndexChange event not firing sa siva via .NET 247 ASP .Net Datagrid Control 2 05-05-2005 03:07 PM
SortCommand Event in DataGrid Manav ASP .Net Datagrid Control 1 02-25-2004 05:46 PM
Can't Call DataGrid SortCommand Event handler Mo ASP .Net 0 01-13-2004 06:58 PM



Advertisments