Click here to Skip to main content
15,918,624 members
Home / Discussions / C#
   

C#

 
QuestionString into resource? [modified] Pin
SoftcodeSoftware4-Aug-06 10:30
SoftcodeSoftware4-Aug-06 10:30 
AnswerRe: String into resource? Pin
Judah Gabriel Himango4-Aug-06 11:21
sponsorJudah Gabriel Himango4-Aug-06 11:21 
GeneralRe: String into resource? Pin
SoftcodeSoftware4-Aug-06 11:34
SoftcodeSoftware4-Aug-06 11:34 
GeneralRe: String into resource? Pin
Judah Gabriel Himango5-Aug-06 10:32
sponsorJudah Gabriel Himango5-Aug-06 10:32 
QuestionUnmanaged C++ DLL Calling Pin
skinnyreptile1684-Aug-06 9:38
skinnyreptile1684-Aug-06 9:38 
AnswerRe: Unmanaged C++ DLL Calling Pin
NrmMyth4-Aug-06 20:25
NrmMyth4-Aug-06 20:25 
GeneralRe: Unmanaged C++ DLL Calling Pin
skinnyreptile1687-Aug-06 4:49
skinnyreptile1687-Aug-06 4:49 
Questionproblems getting the DataGridView to do what I want it to do!!!??? Pin
LongRange.Shooter4-Aug-06 9:35
LongRange.Shooter4-Aug-06 9:35 
I am building an application that must take one Dataset table apart and display it in two different DataGridView's along with one additional field from a second table.

I'm iterating through the transactions and building out a DataTable for each set of records. (this part works nicely) Then set my grids as follows:
payView.DataSource = new DataGridView( payData );
refView.DataSource = new DataGridView( refData );

So far so good, everything works...almost. I have one column defined as a DataGridViewCheckboxCell and that column is not bound to any data. The remaining columns ARE bound to my fields in my data tables and all of them are readonly. My DataGridViewCheckboxCell is marked as ReadOnly=false and I even tried marking my DataGridView as ReadOnly=false. All to no avail. If I click on it, the cell never changes value and remains unchecked. Here is my column definition:
this.selected1 = new DataGridViewCheckBoxColumn();
this.selected1.ReadOnly = false;
this.selected1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.selected1.HeaderText = "Sel";
this.selected1.Name = "paymentSelect";
this.selected1.Resizable = System.Windows.Forms.DataGridViewTriState.False;


Finally I wanted to highly a cell that fell outside the allowed parameters. The logic works well. The cell is identified and the cell.Style was set to a new highlightedStyle object with a light red background color. However the DataGridView never changes the background painting. The only way I got it to work is by hooking into the RowPrePaintEvent and setting the background color there. Why is it working like this??? Why is this control being so difficult to work with????

Any help in getting the checkbox to function properly would be greatly appreciated.
AnswerRe: problems getting the DataGridView to do what I want it to do!!!??? Pin
wout de zeeuw4-Aug-06 9:56
wout de zeeuw4-Aug-06 9:56 
GeneralRe: problems getting the DataGridView to do what I want it to do!!!??? Pin
LongRange.Shooter4-Aug-06 11:32
LongRange.Shooter4-Aug-06 11:32 
GeneralRe: problems getting the DataGridView to do what I want it to do!!!??? Pin
wout de zeeuw4-Aug-06 12:18
wout de zeeuw4-Aug-06 12:18 
QuestionMessage Box Office 2003 Style Pin
sahaas4-Aug-06 8:24
sahaas4-Aug-06 8:24 
AnswerRe: Message Box Office 2003 Style Pin
Judah Gabriel Himango4-Aug-06 11:22
sponsorJudah Gabriel Himango4-Aug-06 11:22 
QuestionOverriding Dispose(bool disposing) in designer file? Pin
wout de zeeuw4-Aug-06 7:50
wout de zeeuw4-Aug-06 7:50 
AnswerRe: Overriding Dispose(bool disposing) in designer file? Pin
LongRange.Shooter4-Aug-06 9:12
LongRange.Shooter4-Aug-06 9:12 
GeneralRe: Overriding Dispose(bool disposing) in designer file? Pin
wout de zeeuw4-Aug-06 9:29
wout de zeeuw4-Aug-06 9:29 
GeneralRe: Overriding Dispose(bool disposing) in designer file? [modified] Pin
LongRange.Shooter4-Aug-06 9:37
LongRange.Shooter4-Aug-06 9:37 
GeneralRe: Overriding Dispose(bool disposing) in designer file? Pin
wout de zeeuw4-Aug-06 9:47
wout de zeeuw4-Aug-06 9:47 
Questiontry catch finally Pin
Saamir4-Aug-06 7:42
Saamir4-Aug-06 7:42 
AnswerRe: try catch finally Pin
wout de zeeuw4-Aug-06 7:46
wout de zeeuw4-Aug-06 7:46 
GeneralRe: try catch finally Pin
Saamir4-Aug-06 7:50
Saamir4-Aug-06 7:50 
AnswerRe: try catch finally Pin
Glen Harvy4-Aug-06 13:17
Glen Harvy4-Aug-06 13:17 
QuestionCreate "aspx" code for a control Pin
bdn024-Aug-06 6:54
bdn024-Aug-06 6:54 
QuestionCombo Box binding Pin
~~~Johnny~~~4-Aug-06 6:47
~~~Johnny~~~4-Aug-06 6:47 
AnswerRe: Combo Box binding Pin
Josh Smith4-Aug-06 7:21
Josh Smith4-Aug-06 7: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.