Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
Generalsort a Datagrid Pin
Appelz22-Apr-04 20:44
Appelz22-Apr-04 20:44 
GeneralRe: sort a Datagrid Pin
Heath Stewart23-Apr-04 2:38
protectorHeath Stewart23-Apr-04 2:38 
GeneralRe: sort a Datagrid Pin
Appelz23-Apr-04 2:58
Appelz23-Apr-04 2:58 
GeneralRe: sort a Datagrid Pin
Heath Stewart23-Apr-04 3:23
protectorHeath Stewart23-Apr-04 3:23 
GeneralRe: sort a Datagrid Pin
Appelz26-Apr-04 21:31
Appelz26-Apr-04 21:31 
GeneralRe: sort a Datagrid Pin
Appelz27-Apr-04 2:30
Appelz27-Apr-04 2:30 
GeneralRe: sort a Datagrid Pin
Heath Stewart27-Apr-04 2:55
protectorHeath Stewart27-Apr-04 2:55 
GeneralRe: sort a Datagrid Pin
Appelz27-Apr-04 2:54
Appelz27-Apr-04 2:54 
i'm doing it now like this:

string xsl = "<xsl:stylesheet version=\"1.0\">" + "<xsl:output method=\"text\"/> " +
"<xsl:template match=\"//libraries\"> " +
" <xsl:apply-templates>"+
"<xsl:sort select=\"//loadorder\"/>"+
"</xsl:apply-templates>"+
"</xsl:template>"+
"</xsl:stylesheet>";
StreamWriter sw = File.CreateText(@"c:\xslt.xsl");
sw.WriteLine(xsl);
sw.Close();


XslTransform test = new XslTransform();
test.Load(@"c:\xslt.xsl");
test.Transform(@"c:\sessions.conf.xml",@"c:\sorted.xml");


but i'm getting a error (on the transform):


An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll
Additional information: System error.




GeneralRe: sort a Datagrid Pin
Heath Stewart27-Apr-04 3:12
protectorHeath Stewart27-Apr-04 3:12 
GeneralRe: sort a Datagrid Pin
Appelz27-Apr-04 3:26
Appelz27-Apr-04 3:26 
GeneralRe: sort a Datagrid Pin
Heath Stewart27-Apr-04 3:44
protectorHeath Stewart27-Apr-04 3:44 
GeneralRe: sort a Datagrid Pin
Appelz27-Apr-04 23:43
Appelz27-Apr-04 23:43 
GeneralRe: sort a Datagrid Pin
Appelz28-Apr-04 0:02
Appelz28-Apr-04 0:02 
QuestionHow to change from Byte[] to Bitmap on a Pocket PC Pin
Gakujin22-Apr-04 19:10
Gakujin22-Apr-04 19:10 
AnswerRe: How to change from Byte[] to Bitmap on a Pocket PC Pin
Baris Kurtlutepe23-Apr-04 1:09
Baris Kurtlutepe23-Apr-04 1:09 
GeneralRe: How to change from Byte[] to Bitmap on a Pocket PC Pin
Heath Stewart23-Apr-04 2:40
protectorHeath Stewart23-Apr-04 2:40 
Questionincluding undefined data in a .net exe?? Pin
Paolo Ponzano22-Apr-04 19:01
Paolo Ponzano22-Apr-04 19:01 
AnswerRe: including undefined data in a .net exe?? Pin
Corinna John22-Apr-04 20:42
Corinna John22-Apr-04 20:42 
GeneralRe: including undefined data in a .net exe?? Pin
Paolo Ponzano23-Apr-04 6:54
Paolo Ponzano23-Apr-04 6:54 
GeneralRe: including undefined data in a .net exe?? Pin
Corinna John23-Apr-04 7:54
Corinna John23-Apr-04 7:54 
GeneralRe: including undefined data in a .net exe?? Pin
Paolo Ponzano23-Apr-04 7:56
Paolo Ponzano23-Apr-04 7:56 
GeneralRe: including undefined data in a .net exe?? Pin
Paolo Ponzano23-Apr-04 21:21
Paolo Ponzano23-Apr-04 21:21 
GeneralRe: including undefined data in a .net exe?? Pin
Corinna John24-Apr-04 8:19
Corinna John24-Apr-04 8:19 
QuestionHow to convert a number to a string Pin
karied22-Apr-04 17:24
karied22-Apr-04 17:24 
AnswerRe: How to convert a number to a string Pin
Jay Shankar22-Apr-04 22:01
Jay Shankar22-Apr-04 22:01 

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.