Click here to Skip to main content
15,888,351 members
Home / Discussions / Database
   

Database

 
AnswerRe: update Query with Order by Clause- SQL Server2008 Pin
Mycroft Holmes11-Jan-10 23:21
professionalMycroft Holmes11-Jan-10 23:21 
GeneralRe: update Query with Order by Clause- SQL Server2008 Pin
i.j.russell12-Jan-10 3:54
i.j.russell12-Jan-10 3:54 
AnswerRe: update Query with Order by Clause- SQL Server2008 Pin
i.j.russell12-Jan-10 3:57
i.j.russell12-Jan-10 3:57 
AnswerRe: update Query with Order by Clause- SQL Server2008 [modified] Pin
loyal ginger12-Jan-10 4:06
loyal ginger12-Jan-10 4:06 
AnswerRe: update Query with Order by Clause- SQL Server2008 Pin
Corporal Agarn12-Jan-10 5:10
professionalCorporal Agarn12-Jan-10 5:10 
GeneralRe: update Query with Order by Clause- SQL Server2008 Pin
i.j.russell12-Jan-10 5:15
i.j.russell12-Jan-10 5:15 
QuestionGetting underlying table-column value from a selected DataGridRow [Solved] Pin
AussieLew11-Jan-10 18:07
AussieLew11-Jan-10 18:07 
AnswerRe: Getting underlying table-column value from a selected DataGridRow Pin
Mycroft Holmes11-Jan-10 18:40
professionalMycroft Holmes11-Jan-10 18:40 
ok, I'm game to take a shot at this, IMHO your design of allowing the user to edit into the DGV is wrong, in all but the most trivial cases I force the user to double click the list control item (DGV, listview etc) and pop a dialog that allows the crud work to be done on the single row. Trap the results from the dialog and reload the list control if the data has been modified/deleted.

The double click event will give you the id from the datarow.

Having said that have you tried the cellformat event to deal with each row as it is displayed. DGV has a myriad of event and you need to get the one that will allow you to identify the row and make it read only before the user gets at it. Search for alternate row colouring and you will see the events that can be adopted for this.

I assume your Boolean flag is in the DGV, probably a hidden column!

Never underestimate the power of human stupidity
RAH

GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
AussieLew11-Jan-10 21:27
AussieLew11-Jan-10 21:27 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
Mycroft Holmes11-Jan-10 22:12
professionalMycroft Holmes11-Jan-10 22:12 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
AussieLew12-Jan-10 0:46
AussieLew12-Jan-10 0:46 
GeneralRe: Getting underlying table-column value from a selected DataGridRow Pin
Mycroft Holmes12-Jan-10 14:00
professionalMycroft Holmes12-Jan-10 14:00 
QuestionSelecting Rows Pin
sriharsha_1210-Jan-10 19:32
sriharsha_1210-Jan-10 19:32 
AnswerRe: Selecting Rows PinPopular
Mycroft Holmes10-Jan-10 20:59
professionalMycroft Holmes10-Jan-10 20:59 
GeneralRe: Selecting Rows Pin
sriharsha_1210-Jan-10 23:08
sriharsha_1210-Jan-10 23:08 
QuestionOracle Pin
MsmVc10-Jan-10 17:14
MsmVc10-Jan-10 17:14 
AnswerRe: Oracle Pin
Mycroft Holmes10-Jan-10 18:15
professionalMycroft Holmes10-Jan-10 18:15 
AnswerRe: Oracle Pin
Jörgen Andersson10-Jan-10 21:56
professionalJörgen Andersson10-Jan-10 21:56 
Questionget list of weeks with week number Pin
Maddie from Dartford10-Jan-10 5:08
Maddie from Dartford10-Jan-10 5:08 
AnswerRe: get list of weeks with week number Pin
Herman<T>.Instance13-Jan-10 3:53
Herman<T>.Instance13-Jan-10 3:53 
QuestionProblem with subquery returning more than 1 value [Solved] Pin
James Shao10-Jan-10 4:34
James Shao10-Jan-10 4:34 
AnswerRe: Problem with subquery returning more than 1 value Pin
dan!sh 10-Jan-10 4:50
professional dan!sh 10-Jan-10 4:50 
GeneralRe: Problem with subquery returning more than 1 value Pin
James Shao10-Jan-10 15:05
James Shao10-Jan-10 15:05 
AnswerRe: Problem with subquery returning more than 1 value Pin
Ashfield10-Jan-10 5:37
Ashfield10-Jan-10 5:37 
GeneralRe: Problem with subquery returning more than 1 value Pin
James Shao10-Jan-10 12:21
James Shao10-Jan-10 12:21 

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.