Click here to Skip to main content
15,927,213 members
Home / Discussions / C#
   

C#

 
AnswerRe: Copy Paste from ListView? Pin
Heath Stewart20-Sep-04 14:07
protectorHeath Stewart20-Sep-04 14:07 
GeneralIE Toolband Pin
Matt Newman20-Sep-04 10:34
Matt Newman20-Sep-04 10:34 
GeneralRe: IE Toolband Pin
Judah Gabriel Himango20-Sep-04 10:55
sponsorJudah Gabriel Himango20-Sep-04 10:55 
GeneralRe: IE Toolband Pin
Anonymous20-Sep-04 11:06
Anonymous20-Sep-04 11:06 
QuestionBittorrent client in C#? Pin
Marlun20-Sep-04 9:08
Marlun20-Sep-04 9:08 
AnswerRe: Bittorrent client in C#? Pin
Steven Campbell20-Sep-04 10:30
Steven Campbell20-Sep-04 10:30 
GeneralRe: Bittorrent client in C#? Pin
Marlun21-Sep-04 19:32
Marlun21-Sep-04 19:32 
GeneralDataGrid Sorting Problem using a DataSet from ViewState Pin
veroBT20-Sep-04 7:37
veroBT20-Sep-04 7:37 
I've got a page with two panels. The first panel contains the search parameters (textboxes and drop downs). The second panel shows the results of the search.

On the result page, i allow paging and sorting.

Everything works great if i rebuild the dataset each time i change pages or change the sort. But when I cache the dataset in ViewState and try to change pages or the sort, it just takes my back to the parameter page automatically. Nothing else happens.

Here's my code for the Sort:

<br />
ViewState.Add("str_sortOrder", e.SortExpression);<br />
<br />
DataView dvwResults = new DataView();<br />
dvwResults = dst_searchResults.Tables[0].DefaultView[0].DataView;<br />
dvwResults.Sort = ViewState["str_sortOrder"].ToString();<br />
<br />
this.dgr_searchResults.DataSource = dvwResults;<br />
this.dgr_searchResults.DataKeyField = "aut_companyID";<br />
this.dgr_searchResults.DataBind();<br />


All help is appreciated.
Brian
GeneralRe: DataGrid Sorting Problem using a DataSet from ViewState Pin
Heath Stewart20-Sep-04 13:54
protectorHeath Stewart20-Sep-04 13:54 
GeneralC# and org.apache.log4j.PropertyConfigurator Pin
devvvy20-Sep-04 4:22
devvvy20-Sep-04 4:22 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
Heath Stewart20-Sep-04 6:46
protectorHeath Stewart20-Sep-04 6:46 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
Steven Campbell20-Sep-04 7:06
Steven Campbell20-Sep-04 7:06 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
Heath Stewart20-Sep-04 7:11
protectorHeath Stewart20-Sep-04 7:11 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
devvvy21-Sep-04 7:53
devvvy21-Sep-04 7:53 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
devvvy21-Sep-04 7:52
devvvy21-Sep-04 7:52 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
Heath Stewart21-Sep-04 11:01
protectorHeath Stewart21-Sep-04 11:01 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
devvvy22-Sep-04 17:26
devvvy22-Sep-04 17:26 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
Heath Stewart22-Sep-04 20:21
protectorHeath Stewart22-Sep-04 20:21 
GeneralRe: C# and org.apache.log4j.PropertyConfigurator Pin
devvvy22-Sep-04 20:39
devvvy22-Sep-04 20:39 
GeneralRelating datagrid rows to datatable rows Pin
blakeb_120-Sep-04 4:07
blakeb_120-Sep-04 4:07 
GeneralRe: Relating datagrid rows to datatable rows Pin
Anonymous20-Sep-04 8:24
Anonymous20-Sep-04 8:24 
GeneralCrystal Reports progress in an app Pin
Mr. Labenche20-Sep-04 4:04
Mr. Labenche20-Sep-04 4:04 
GeneralRe: Crystal Reports progress in an app Pin
Dave Kreskowiak20-Sep-04 6:44
mveDave Kreskowiak20-Sep-04 6:44 
GeneralRe: Crystal Reports progress in an app Pin
Mr. Labenche23-Sep-04 1:24
Mr. Labenche23-Sep-04 1:24 
GeneralSearch and display text in richtextbox Pin
clatten20-Sep-04 3:24
clatten20-Sep-04 3:24 

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.