Click here to Skip to main content
15,916,280 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to build a control? Pin
Mekong River29-Mar-05 11:41
Mekong River29-Mar-05 11:41 
Questionhow to retrieve values from datagrid ? Pin
sumit2129-Mar-05 2:51
sumit2129-Mar-05 2:51 
AnswerRe: how to retrieve values from datagrid ? Pin
Robert Rohde29-Mar-05 8:05
Robert Rohde29-Mar-05 8:05 
GeneralRe: how to retrieve values from datagrid ? Pin
sumit2129-Mar-05 17:29
sumit2129-Mar-05 17:29 
Questionhow to insert the values in listbox to database in vb.net Pin
vidyashankar29-Mar-05 1:45
vidyashankar29-Mar-05 1:45 
AnswerRe: how to insert the values in listbox to database in vb.net Pin
magnifique29-Mar-05 4:45
magnifique29-Mar-05 4:45 
Generalproblem in data binding Pin
sumit2128-Mar-05 23:11
sumit2128-Mar-05 23:11 
GeneralRe: problem in data binding Pin
Christian Graus29-Mar-05 12:26
protectorChristian Graus29-Mar-05 12:26 
What is your problem ? How would you like us to help ? ESP ? Magic ? It's possible that the problem is that you've not called databind on ds, but who can say ? You've not said what the problem is, showed us the method you call, or anything else that would help us to help you.

Your code is pretty terrible in any case. Why are you putting data access code in a form ? Surely the fact you need to create an instance of a form to call a database method is a clue that you have an exceedingly terrible design happening here ( no design, more like ). You should not declare all variables at the top of a function, do it as you need them. Why don't you just not create an intermediate dataset at all ? In an ideal world, all of the above code should look like this:

ds.DataSource = MyWellDesignedDataAccessClassWithStaticFunctionsAndAStaticConnectionWithLazyInitialisation.GetSchemaTable();
ds.DataBind()

Man, non-case sensitive languages make me feel dirty.

I recommend you stop programming until you've read a book called Code Complete.


Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: problem in data binding Pin
sumit2129-Mar-05 17:41
sumit2129-Mar-05 17:41 
GeneralRe: problem in data binding Pin
Christian Graus29-Mar-05 17:59
protectorChristian Graus29-Mar-05 17:59 
Generalwant a Project Pin
Anonymous28-Mar-05 20:10
Anonymous28-Mar-05 20:10 
GeneralRe: want a Project Pin
magnifique29-Mar-05 4:55
magnifique29-Mar-05 4:55 
GeneralSending Email Pin
bontiet28-Mar-05 19:49
bontiet28-Mar-05 19:49 
Generalwant a project Pin
Anonymous28-Mar-05 17:30
Anonymous28-Mar-05 17:30 
GeneralRe: want a project Pin
Christian Graus28-Mar-05 18:46
protectorChristian Graus28-Mar-05 18:46 
GeneralDifferent control Linking Pin
kerene28-Mar-05 16:39
kerene28-Mar-05 16:39 
GeneralThe datagrid problem....help... Pin
besah28-Mar-05 14:07
besah28-Mar-05 14:07 
GeneralTWO WAY DATA BINDING Pin
Anonymous28-Mar-05 10:42
Anonymous28-Mar-05 10:42 
QuestionHow to call a aspx page from a windows form Pin
ac_vbdeveloper28-Mar-05 8:36
ac_vbdeveloper28-Mar-05 8:36 
AnswerRe: How to call a aspx page from a windows form Pin
Christian Graus28-Mar-05 19:04
protectorChristian Graus28-Mar-05 19:04 
GeneralRe: How to call a aspx page from a windows form Pin
ac_vbdeveloper12-Apr-05 3:17
ac_vbdeveloper12-Apr-05 3:17 
GeneralList all controls existing in a form Pin
wgalafassijr28-Mar-05 5:13
wgalafassijr28-Mar-05 5:13 
GeneralRe: List all controls existing in a form Pin
rwestgraham28-Mar-05 17:52
rwestgraham28-Mar-05 17:52 
GeneralCanadian Postal Codes Validation Pin
Member 157864528-Mar-05 4:39
Member 157864528-Mar-05 4:39 
GeneralRe: Canadian Postal Codes Validation Pin
Dave Kreskowiak28-Mar-05 5:03
mveDave Kreskowiak28-Mar-05 5:03 

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.