Click here to Skip to main content
15,914,014 members
Home / Discussions / C#
   

C#

 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart31-Oct-04 20:11
protectorHeath Stewart31-Oct-04 20:11 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting6681-Nov-04 3:45
ting6681-Nov-04 3:45 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart1-Nov-04 5:27
protectorHeath Stewart1-Nov-04 5:27 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting6683-Nov-04 19:51
ting6683-Nov-04 19:51 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart4-Nov-04 4:41
protectorHeath Stewart4-Nov-04 4:41 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting6684-Nov-04 14:56
ting6684-Nov-04 14:56 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart8-Nov-04 5:03
protectorHeath Stewart8-Nov-04 5:03 
GeneralSorting DataGrid from DataView Problems Pin
Rebecca Gao28-Oct-04 16:23
Rebecca Gao28-Oct-04 16:23 
hi Gurus,

I'm using DataView to display a datagrid. The data source of the dataview is a data table.
The dataview should always be sorted by a specific column in the same order. The user can modify the row data, without the columns unchanged. The data grid (or data view?) is frozen so that the user can't sort the data when clicking on any column header of the datagrid, but it seems one Mission Impossible...

The codes are something like the follows, where
one column of the data table is defined as the "Sort" column of the dataview, and validate the "ApplyDefaultSort" property to be true.

DataTable myTable = createMyTable(); // define MyTable
myTable = refreshMyTable(myTable); // add rows to the table

DataView MyView = new DataView();
MyView.Table = myTable; MyView.RowStateFilter = DataViewRowState.CurrentRows ;
MyView.AllowEdit = true; MyView.ApplyDefaultSort = true;
m_myDataGrid.SetDataBinding(MyView,"");
...

However, now it seems the user gets a full control over sorting of the datagrid.Cry | :((
I'm expecting your help, many thanks in advance~~~





GeneralRe: Sorting DataGrid from DataView Problems Pin
sreejith ss nair28-Oct-04 18:38
sreejith ss nair28-Oct-04 18:38 
GeneralRe: Sorting DataGrid from DataView Problems Pin
Rebecca Gao28-Oct-04 20:39
Rebecca Gao28-Oct-04 20:39 
GeneralRe: Sorting DataGrid from DataView Problems Pin
sreejith ss nair28-Oct-04 22:57
sreejith ss nair28-Oct-04 22:57 
GeneralRe: Sorting DataGrid from DataView Problems Pin
Rebecca Gao29-Oct-04 4:02
Rebecca Gao29-Oct-04 4:02 
Generalforms maximize and minimum Pin
webhay28-Oct-04 16:05
webhay28-Oct-04 16:05 
GeneralRe: forms maximize and minimum Pin
Heath Stewart28-Oct-04 16:16
protectorHeath Stewart28-Oct-04 16:16 
GeneralGDI+ usercontrol problem Pin
bobrad28-Oct-04 15:44
bobrad28-Oct-04 15:44 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart28-Oct-04 16:32
protectorHeath Stewart28-Oct-04 16:32 
GeneralRe: GDI+ usercontrol problem Pin
bobrad28-Oct-04 17:10
bobrad28-Oct-04 17:10 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart29-Oct-04 5:37
protectorHeath Stewart29-Oct-04 5:37 
GeneralRe: GDI+ usercontrol problem Pin
bobrad29-Oct-04 6:07
bobrad29-Oct-04 6:07 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart30-Oct-04 2:22
protectorHeath Stewart30-Oct-04 2:22 
Generalbind datagrid to a variable Pin
xiaowenjie28-Oct-04 15:29
xiaowenjie28-Oct-04 15:29 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart28-Oct-04 16:13
protectorHeath Stewart28-Oct-04 16:13 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie28-Oct-04 19:08
xiaowenjie28-Oct-04 19:08 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart29-Oct-04 5:38
protectorHeath Stewart29-Oct-04 5:38 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie29-Oct-04 6:15
xiaowenjie29-Oct-04 6:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.