Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: DATA GRID sorting problem. Pin
kumar.bs30-May-07 6:16
kumar.bs30-May-07 6:16 
QuestionHashTable sort order Pin
Blumen29-May-07 23:56
Blumen29-May-07 23:56 
AnswerRe: HashTable sort order Pin
Martin#30-May-07 0:07
Martin#30-May-07 0:07 
AnswerRe: HashTable sort order Pin
CPallini30-May-07 0:15
mveCPallini30-May-07 0:15 
AnswerRe: HashTable sort order Pin
sujithkumarsl30-May-07 1:25
sujithkumarsl30-May-07 1:25 
AnswerRe: HashTable sort order Pin
leppie30-May-07 4:51
leppie30-May-07 4:51 
Questionfailed to load view state Pin
tauras8129-May-07 23:49
tauras8129-May-07 23:49 
AnswerRe: failed to load view state Pin
leppie30-May-07 4:53
leppie30-May-07 4:53 
QuestionASCII LpSTR? Pin
Russell Jones29-May-07 23:41
Russell Jones29-May-07 23:41 
AnswerRe: ASCII LpSTR? Pin
Dave Herren30-May-07 1:21
Dave Herren30-May-07 1:21 
QuestionSub-classing Pin
Shivaprasad D Atthigode29-May-07 23:27
Shivaprasad D Atthigode29-May-07 23:27 
AnswerRe: Sub-classing Pin
MarkB77729-May-07 23:56
MarkB77729-May-07 23:56 
Questionrich textbox Pin
treah29-May-07 23:18
treah29-May-07 23:18 
AnswerRe: rich textbox Pin
JoeSharp29-May-07 23:26
JoeSharp29-May-07 23:26 
AnswerRe: rich textbox Pin
NassosReyzidis29-May-07 23:27
NassosReyzidis29-May-07 23:27 
QuestionPopulate combobox Pin
matjame29-May-07 23:00
matjame29-May-07 23:00 
AnswerRe: Populate combobox Pin
Christian Graus29-May-07 23:06
protectorChristian Graus29-May-07 23:06 
What a mess

matjame wrote:
con.ConnectionString = str;


what is str, and why is a member variable named so badly ?

matjame wrote:
String str1 = "Select * from Filter";


You never use this anywhere, so it's irrelevant to the rest of the code.

What is con, cm and dtr ? Why do you have badly named member variables like this, that probably could be local, and are not named in a way that means anything ?


matjame wrote:
cboExtension.Text = (dtr["FilterKey"]).ToString();<<*****Problem****


What's the problem ? Does it not compile ? Does it blow up ? What's the error message ?

This is also not going to do more than add one value into the combo box. That's what the Text property will do. To add items, make a collection the datasource, and if it's not a collection of strings, set the DisplayMember property.

All of this looks to me like you're making it up as you go and hoping it will work. Intellisense is no substitute for reading MSDN or buying a good book as a reference.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Populate combobox Pin
matjame29-May-07 23:21
matjame29-May-07 23:21 
AnswerRe: Populate combobox Pin
sujithkumarsl29-May-07 23:15
sujithkumarsl29-May-07 23:15 
GeneralRe: Populate combobox Pin
J4amieC29-May-07 23:42
J4amieC29-May-07 23:42 
GeneralRe: Populate combobox Pin
sujithkumarsl29-May-07 23:58
sujithkumarsl29-May-07 23:58 
GeneralRe: Populate combobox Pin
J4amieC30-May-07 0:58
J4amieC30-May-07 0:58 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:48
matjame30-May-07 0:48 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode29-May-07 23:38
Shivaprasad D Atthigode29-May-07 23:38 
GeneralRe: Populate combobox Pin
matjame29-May-07 23:50
matjame29-May-07 23:50 

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.