PC Review


Reply
Thread Tools Rate Thread

datagrid column sort

 
 
anterosousa
Guest
Posts: n/a
 
      17th Jul 2006
Is there a way I can send a click event to a datagrid. I want to
simulate a
user clicking on a heading to sort the display.

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      17th Jul 2006
anterosousa,

There is no need to do this. If you bound the DataTable to the grid,
then check the DefaultView property, and set the DataView's Sort property to
the column you want to sort the grid by. This will cause the grid, in turn,
to update itself as a result of the sort.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"anterosousa" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way I can send a click event to a datagrid. I want to
> simulate a
> user clicking on a heading to sort the display.
>



 
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 Column sort! DBC User Microsoft C# .NET 3 14th Jul 2006 09:28 PM
DataGrid Sort Column HeaderStyle =?Utf-8?B?QmFyZW4=?= Microsoft ASP .NET 0 28th Apr 2005 09:53 PM
Getting sort error on datagrid column name nate axtell Microsoft VB .NET 1 29th Oct 2004 08:52 PM
Need Help Determining DataGrid Column Selected for Sort using IBindingList - Datagrid.zip (0/1) David Elliott Microsoft Dot NET Framework Forms 1 18th Jul 2003 02:22 AM
Need Help Determining DataGrid Column Selected for Sort using IBindingList - Datagrid.zip (0/1) David Elliott Microsoft Dot NET Framework Forms 0 18th Jul 2003 02:12 AM


Features
 

Advertising
 

Newsgroups
 


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