Click here to Skip to main content
16,012,061 members
Home / Discussions / Database
   

Database

 
AnswerRe: Problems creating View Pin
Eric Dahlvang25-Aug-06 10:58
Eric Dahlvang25-Aug-06 10:58 
GeneralRe: Problems creating View Pin
xfitr226-Aug-06 11:36
xfitr226-Aug-06 11:36 
QuestionSQL CONNECTION STRING Pin
greekius25-Aug-06 2:34
greekius25-Aug-06 2:34 
AnswerRe: SQL CONNECTION STRING Pin
Colin Angus Mackay25-Aug-06 2:57
Colin Angus Mackay25-Aug-06 2:57 
AnswerRe: SQL CONNECTION STRING Pin
Not Active25-Aug-06 4:11
mentorNot Active25-Aug-06 4:11 
AnswerRe: SQL CONNECTION STRING Pin
S Pandian25-Aug-06 22:36
S Pandian25-Aug-06 22:36 
AnswerRe: SQL CONNECTION STRING Pin
S Douglas27-Aug-06 23:21
professionalS Douglas27-Aug-06 23:21 
QuestionMaster detail forms Question (how to iterate the detail table thru datagridview) Pin
Rocky#25-Aug-06 0:58
Rocky#25-Aug-06 0:58 
hello every one,
well I'm working on making a master detail form here. I've binded the data correctly and now I want to add the update, del, and insert new record functionality to the detail form. I'm using .net 2.0 C# and I'm working in windows Forms. I've used DataGridView class to display the detail data information.

For saving the record, I wanted to cast the datasource of DataGridView into a datatable first and then use it to iterate thru the data but it returns a null so I get the nullreferenceException. Plz tell me how to iterate thru the detail table here.

I actually deleted a few columns from the detail table ;like the PK columns and Foreign Key columns coz the user doesnt need to see those. But I do wanna have access to those esp when updatin the record. So what can I do.

if its possible plz give me a sample code or application if u can.
thanks in advance...


Rocky
QuestionUpdate new date in database Pin
Fu Manchu24-Aug-06 23:31
Fu Manchu24-Aug-06 23:31 
AnswerRe: Update new date in database Pin
mr_lasseter25-Aug-06 2:57
mr_lasseter25-Aug-06 2:57 
AnswerRe: Update new date in database Pin
Eric Dahlvang25-Aug-06 4:02
Eric Dahlvang25-Aug-06 4:02 
QuestionPopulate label from SQL query... Pin
japel24-Aug-06 20:03
japel24-Aug-06 20:03 
AnswerRe: Populate label from SQL query... Pin
Colin Angus Mackay24-Aug-06 22:47
Colin Angus Mackay24-Aug-06 22:47 
GeneralRe: Populate label from SQL query... Pin
japel25-Aug-06 0:17
japel25-Aug-06 0:17 
Questionhow do i print the number of rows with same item in 1 column? [modified] Pin
kozu24-Aug-06 17:49
kozu24-Aug-06 17:49 
AnswerRe: how do i print the number of rows with same item in 1 column? Pin
Colin Angus Mackay24-Aug-06 22:44
Colin Angus Mackay24-Aug-06 22:44 
AnswerRe: how do i print the number of rows with same item in 1 column? Pin
Eric Dahlvang25-Aug-06 4:23
Eric Dahlvang25-Aug-06 4:23 
GeneralRe: how do i print the number of rows with same item in 1 column? Pin
kozu25-Aug-06 4:53
kozu25-Aug-06 4:53 
QuestionSQL and C# problem [modified] Pin
William Ten Broek24-Aug-06 11:30
William Ten Broek24-Aug-06 11:30 
AnswerLDAP Pin
Ennis Ray Lynch, Jr.24-Aug-06 11:33
Ennis Ray Lynch, Jr.24-Aug-06 11:33 
QuestionHow to do a Select/Where x=NULL Pin
TheJudeDude24-Aug-06 11:09
TheJudeDude24-Aug-06 11:09 
AnswerRe: How to do a Select/Where x=NULL Pin
Colin Angus Mackay24-Aug-06 11:19
Colin Angus Mackay24-Aug-06 11:19 
GeneralRe: How to do a Select/Where x=NULL Pin
TheJudeDude24-Aug-06 11:25
TheJudeDude24-Aug-06 11:25 
AnswerRe: How to do a Select/Where x=NULL Pin
S Pandian25-Aug-06 22:37
S Pandian25-Aug-06 22:37 
QuestionProgramming SQL Database Question Pin
Jethro6324-Aug-06 10:11
Jethro6324-Aug-06 10:11 

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.