Click here to Skip to main content
15,905,073 members
Home / Discussions / C#
   

C#

 
QuestionCreate LDAP Listener Pin
tellaston134525-Oct-11 8:01
tellaston134525-Oct-11 8:01 
QuestionSorting in multiple columns in gridview using C# Pin
Dhyanga25-Oct-11 7:01
Dhyanga25-Oct-11 7:01 
AnswerRe: Sorting in multiple columns in gridview using C# Pin
Not Active25-Oct-11 8:36
mentorNot Active25-Oct-11 8:36 
GeneralRe: Sorting in multiple columns in gridview using C# Pin
Dhyanga25-Oct-11 9:32
Dhyanga25-Oct-11 9:32 
GeneralRe: Sorting in multiple columns in gridview using C# Pin
Not Active25-Oct-11 9:38
mentorNot Active25-Oct-11 9:38 
AnswerRe: Sorting in multiple columns in gridview using C# Pin
Luc Pattyn25-Oct-11 9:50
sitebuilderLuc Pattyn25-Oct-11 9:50 
GeneralRe: Sorting in multiple columns in gridview using C# Pin
Dhyanga25-Oct-11 9:53
Dhyanga25-Oct-11 9:53 
AnswerRe: Sorting in multiple columns in gridview using C# Pin
Luc Pattyn25-Oct-11 10:18
sitebuilderLuc Pattyn25-Oct-11 10:18 
you want to hold one boolean flag for every column, but have them structured, not just a bunch of loose flags. There are several ways to do that.

One way is by holding an array of four bools, one for each column, and use the column number as the array index.

A more elastic approach would rely on a HashTable or better yet a Dictionary<string,bool> where the key could be the column header text (they have to be unique!), and the value is the bool itself. That way you can find the bool for a column by feeding the column header text to the HashTable/Dictionary.

BTW: you could use the Column itself as the key, however that may or may not be any easier.

Smile | :)

PS: if you're new to HashTable/Dictionary you should read up on those classes.
Luc Pattyn [My Articles] Nil Volentibus Arduum

QuestionDeployment of c# application with merge modules Pin
sarang_k24-Oct-11 20:49
sarang_k24-Oct-11 20:49 
AnswerRe: Deployment of c# application with merge modules Pin
Pete O'Hanlon24-Oct-11 21:05
mvePete O'Hanlon24-Oct-11 21:05 
QuestionDynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland24-Oct-11 13:29
boreland24-Oct-11 13:29 
AnswerRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
Luc Pattyn24-Oct-11 14:19
sitebuilderLuc Pattyn24-Oct-11 14:19 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland24-Oct-11 17:48
boreland24-Oct-11 17:48 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BobJanova24-Oct-11 23:04
BobJanova24-Oct-11 23:04 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 3:20
professionalBillWoodruff25-Oct-11 3:20 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland25-Oct-11 3:53
boreland25-Oct-11 3:53 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
Pete O'Hanlon25-Oct-11 4:10
mvePete O'Hanlon25-Oct-11 4:10 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 14:53
professionalBillWoodruff25-Oct-11 14:53 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland25-Oct-11 15:49
boreland25-Oct-11 15:49 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 17:51
professionalBillWoodruff25-Oct-11 17:51 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland25-Oct-11 19:29
boreland25-Oct-11 19:29 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
Pete O'Hanlon26-Oct-11 3:23
mvePete O'Hanlon26-Oct-11 3:23 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BobJanova26-Oct-11 0:35
BobJanova26-Oct-11 0:35 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BobJanova26-Oct-11 0:34
BobJanova26-Oct-11 0:34 
AnswerRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 18:01
professionalBillWoodruff25-Oct-11 18: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.