Click here to Skip to main content
15,909,039 members
Home / Discussions / C#
   

C#

 
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 
1.
John Torjo wrote:
1. why start at 7:7 (i and j)? Why go until grid_lic.ColumnCount -1 instead of grid_lic.ColumnCount?
Because the checkbox columns are on the column nr. 3 and from 7 untill 19, in a 21 columns datagrid.
John Torjo wrote:
2. Your i and j iterate through columsn onlyl not through rows at all.
I'm not interested in going through rows, but only through the columns of the selected row.
John Torjo wrote:
3. Why do you set that CurrentRow.Cells[3] to false or true?
Because there is a checkbox column in the column nr. 3.
John Torjo wrote:
4. Why the double statements (Convert.ToBoolean...)?
Because being checkboxes, only booleans are read.
John Torjo wrote:
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
Isn't the cycle in the code doing that? What's the alternative?
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 
GeneralRe: Report Builder in Visual Studio Pin
Gerry Schmitz11-Jan-16 5:29
mveGerry Schmitz11-Jan-16 5:29 
AnswerRe: Report Builder in Visual Studio Pin
Mycroft Holmes11-Jan-16 12:04
professionalMycroft Holmes11-Jan-16 12:04 
QuestionC# Run Powershell with elevated rights Pin
Member 1085106210-Jan-16 15:06
Member 1085106210-Jan-16 15:06 
AnswerRe: C# Run Powershell with elevated rights Pin
Garth J Lancaster10-Jan-16 16:54
professionalGarth J Lancaster10-Jan-16 16:54 
QuestionMemory leak trouble with Linq to Sql and multiple threads Pin
JD869-Jan-16 14:07
JD869-Jan-16 14:07 
AnswerRe: Memory leak trouble with Linq to Sql and multiple threads Pin
Dave Kreskowiak9-Jan-16 18:05
mveDave Kreskowiak9-Jan-16 18:05 
GeneralRe: Memory leak trouble with Linq to Sql and multiple threads Pin
JD8610-Jan-16 16:41
JD8610-Jan-16 16:41 
GeneralRe: Memory leak trouble with Linq to Sql and multiple threads Pin
Dave Kreskowiak10-Jan-16 17:19
mveDave Kreskowiak10-Jan-16 17:19 

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.