Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
GeneralRe: get xml data Pin
arkiboys25-Apr-07 5:37
arkiboys25-Apr-07 5:37 
GeneralRe: get xml data Pin
kubben25-Apr-07 5:48
kubben25-Apr-07 5:48 
QuestionBlocking Multiple Application accessing the same file Pin
girijaa25-Apr-07 4:33
professionalgirijaa25-Apr-07 4:33 
AnswerRe: Blocking Multiple Application accessing the same file Pin
Colin Angus Mackay25-Apr-07 4:47
Colin Angus Mackay25-Apr-07 4:47 
AnswerRe: Blocking Multiple Application accessing the same file Pin
Tim Paaschen25-Apr-07 19:50
Tim Paaschen25-Apr-07 19:50 
QuestionContextMenu and ListView problem? Pin
Khoramdin25-Apr-07 4:25
Khoramdin25-Apr-07 4:25 
AnswerRe: ContextMenu and ListView problem? Pin
led mike25-Apr-07 4:33
led mike25-Apr-07 4:33 
QuestionSorting DataGrid when datasource is a DataSet Pin
Chris_Green25-Apr-07 3:35
Chris_Green25-Apr-07 3:35 
I have a MyDataSet : DataSet class which contains 3 talbes and 2 data relations. This is set to a custom datagrid which can expand to show something like Users -> tickets for user -> details of ticket. I'm sure this is entirely simple, but how do I sort while keeping my dataset as the datasource? When I google they always discard the dataset and do something like:

MyDataSet ds = (MyDataSet) _dgUsers.DataSource;<br />
DataView dv = ds.Tables[0].DefaultView;<br />
dv.Sort = "something ASC";<br />
_dgUsers.DataSource = dv;<br />
_dgUsers.DataBind();

This is useless as I've just lost my dataset. I tried modifying the view of the table inside the dataset but it just gets ignored (although it remains set when I sort again):

MyDataSet ds = (MyDataSet) _dgUsers.DataSource;<br />
DataView dv = ds.Tables[0].DefaultView;<br />
dv.Sort = "something ASC";<br />
_dgUsers.DataSource = ds;<br />
_dgUsers.DataBind();

How should it be done? When I clone the DataSet it seems to work. Why is that?
AnswerRe: Sorting DataGrid when datasource is a DataSet Pin
kubben25-Apr-07 5:38
kubben25-Apr-07 5:38 
GeneralRe: Sorting DataGrid when datasource is a DataSet Pin
Chris_Green25-Apr-07 5:42
Chris_Green25-Apr-07 5:42 
QuestionCreate a Better looking panel? Pin
Carlos Adriano Portes25-Apr-07 3:16
professionalCarlos Adriano Portes25-Apr-07 3:16 
AnswerRe: Create a Better looking panel? Pin
Patrick Etc.25-Apr-07 4:16
Patrick Etc.25-Apr-07 4:16 
QuestionApplication error question Pin
LCI25-Apr-07 2:53
LCI25-Apr-07 2:53 
AnswerRe: Application error question Pin
Tarakeshwar Reddy25-Apr-07 4:37
professionalTarakeshwar Reddy25-Apr-07 4:37 
QuestionProperties not displayed in Visual Studio Editor Pin
SakthiSurya25-Apr-07 1:56
SakthiSurya25-Apr-07 1:56 
AnswerRe: Properties not displayed in Visual Studio Editor Pin
Christian Graus25-Apr-07 2:14
protectorChristian Graus25-Apr-07 2:14 
GeneralRe: Properties not displayed in Visual Studio Editor Pin
SakthiSurya25-Apr-07 2:27
SakthiSurya25-Apr-07 2:27 
GeneralRe: Properties not displayed in Visual Studio Editor Pin
marky77725-Apr-07 4:14
marky77725-Apr-07 4:14 
GeneralRe: Properties not displayed in Visual Studio Editor Pin
SakthiSurya25-Apr-07 21:35
SakthiSurya25-Apr-07 21:35 
GeneralRe: Properties not displayed in Visual Studio Editor Pin
marky77725-Apr-07 21:42
marky77725-Apr-07 21:42 
AnswerRe: Properties not displayed in Visual Studio Editor Pin
Amr Abdel-Mohsen25-Apr-07 2:25
Amr Abdel-Mohsen25-Apr-07 2:25 
Questionhow to pass a method with parameter(s) to ThreadStart ? Pin
hdv21225-Apr-07 1:36
hdv21225-Apr-07 1:36 
AnswerRe: how to pass a method with parameter(s) to ThreadStart ? Pin
Martin#25-Apr-07 2:07
Martin#25-Apr-07 2:07 
AnswerRe: how to pass a method with parameter(s) to ThreadStart ? Pin
Christian Graus25-Apr-07 2:15
protectorChristian Graus25-Apr-07 2:15 
GeneralRe: how to pass a method with parameter(s) to ThreadStart ? Pin
Martin#25-Apr-07 2:22
Martin#25-Apr-07 2:22 

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.