Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Report builder in c# Pin
Brisingr Aerowing12-Jan-16 13:31
professionalBrisingr Aerowing12-Jan-16 13:31 
AnswerRe: Report builder in c# Pin
Mycroft Holmes12-Jan-16 12:07
professionalMycroft Holmes12-Jan-16 12:07 
AnswerRe: Report builder in c# Pin
Gerry Schmitz12-Jan-16 16:39
mveGerry Schmitz12-Jan-16 16:39 
QuestionGood Example C# Datagrid and CRUD-Functionality Pin
gpc4411-Jan-16 23:36
gpc4411-Jan-16 23:36 
AnswerRe: Good Example C# Datagrid and CRUD-Functionality Pin
Garth J Lancaster11-Jan-16 23:55
professionalGarth J Lancaster11-Jan-16 23:55 
GeneralRe: Good Example C# Datagrid and CRUD-Functionality Pin
gpc4413-Jan-16 2:41
gpc4413-Jan-16 2:41 
QuestionThe best way to set all the datagrid cells of a row with the same value Pin
Member 1144944711-Jan-16 8:03
Member 1144944711-Jan-16 8:03 
AnswerRe: The best way to set all the datagrid cells of a row with the same value Pin
John Torjo11-Jan-16 13:59
professionalJohn Torjo11-Jan-16 13:59 
Your code needs quite a bit of improments:

1. why start at 7:7 (i and j)? Why go until grid_lic.ColumnCount -1 instead of grid_lic.ColumnCount?
2. Your i and j iterate through columsn onlyl not through rows at all.
3. Why do you set that CurrentRow.Cells[3] to false or true?
4. Why the double statements (Convert.ToBoolean...)?
5. The Convert.ToBoolean seems un-needed

6. You need to first check ALL cells to see if they are all true or not, so that you'll know how to set them
7. Then, once you've done 6., you have to do a simple for..., and set each checkbox to either false or true (what you computed at step 6.)

Best,
John
-- Log Wizard - a Log Viewer that is easy and fun to use!

GeneralRe: The best way to set all the datagrid cells of a row with the same value Pin
Member 1144944711-Jan-16 22:49
Member 1144944711-Jan-16 22:49 
GeneralRe: The best way to set all the datagrid cells of a row with the same value Pin
John Torjo11-Jan-16 23:36
professionalJohn Torjo11-Jan-16 23:36 
AnswerRe: The best way to set all the datagrid cells of a row with the same value Pin
Pete O'Hanlon12-Jan-16 1:08
mvePete O'Hanlon12-Jan-16 1:08 
GeneralRe: The best way to set all the datagrid cells of a row with the same value Pin
Member 1144944712-Jan-16 1:33
Member 1144944712-Jan-16 1:33 
GeneralRe: The best way to set all the datagrid cells of a row with the same value Pin
Pete O'Hanlon12-Jan-16 2:01
mvePete O'Hanlon12-Jan-16 2:01 
GeneralRe: The best way to set all the datagrid cells of a row with the same value Pin
Member 1144944712-Jan-16 3:09
Member 1144944712-Jan-16 3:09 
GeneralRe: The best way to set all the datagrid cells of a row with the same value Pin
Pete O'Hanlon12-Jan-16 3:12
mvePete O'Hanlon12-Jan-16 3:12 
Questiondtsearch engine/desktop C#? Pin
Hossei_Da_Hustla11-Jan-16 5:40
Hossei_Da_Hustla11-Jan-16 5:40 
AnswerRe: dtsearch engine/desktop C#? Pin
OriginalGriff11-Jan-16 5:52
mveOriginalGriff11-Jan-16 5:52 
AnswerRe: dtsearch engine/desktop C#? Pin
Richard Deeming11-Jan-16 5:58
mveRichard Deeming11-Jan-16 5:58 
QuestionReport Builder in Visual Studio Pin
milo-xml11-Jan-16 3:11
professionalmilo-xml11-Jan-16 3:11 
GeneralRe: Report Builder in Visual Studio Pin
V.11-Jan-16 3:40
professionalV.11-Jan-16 3:40 
GeneralRe: Report Builder in Visual Studio Pin
milo-xml11-Jan-16 4:54
professionalmilo-xml11-Jan-16 4:54 
AnswerRe: Report Builder in Visual Studio Pin
V.11-Jan-16 19:59
professionalV.11-Jan-16 19:59 
GeneralRe: Report Builder in Visual Studio Pin
milo-xml12-Jan-16 1:27
professionalmilo-xml12-Jan-16 1:27 
AnswerRe: Report Builder in Visual Studio Pin
Gerry Schmitz11-Jan-16 4:54
mveGerry Schmitz11-Jan-16 4:54 
GeneralRe: Report Builder in Visual Studio Pin
milo-xml11-Jan-16 5:08
professionalmilo-xml11-Jan-16 5:08 

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.