Click here to Skip to main content
15,920,602 members
Home / Discussions / C#
   

C#

 
GeneralRe: Advice Pin
Guillermo Rivero20-Oct-03 16:47
Guillermo Rivero20-Oct-03 16:47 
GeneralRe: Advice Pin
Bo Hunter20-Oct-03 18:05
Bo Hunter20-Oct-03 18:05 
GeneralRe: Advice Pin
leppie21-Oct-03 8:59
leppie21-Oct-03 8:59 
GeneralMultilple Monitors Pin
Jeff Monheiser20-Oct-03 9:00
Jeff Monheiser20-Oct-03 9:00 
GeneralRe: Multilple Monitors Pin
igor196020-Oct-03 9:36
igor196020-Oct-03 9:36 
GeneralRe: Multilple Monitors Pin
Heath Stewart20-Oct-03 10:35
protectorHeath Stewart20-Oct-03 10:35 
GeneralRe: Multilple Monitors Pin
leppie21-Oct-03 11:58
leppie21-Oct-03 11:58 
QuestionWhats wrong with this datagrid code? Pin
RB@Emphasys20-Oct-03 8:32
RB@Emphasys20-Oct-03 8:32 
Hello all,
I have to set certain values in a datacell based on its orginial value. So 0 stands for Ended, and 1 stands for in progress. For whatever the reason, Im having a difficult time changing the text of a cell in my datagrid. Im sure im doing something stupid, whats wrong with this picture?

DataGridCell oCell;
for(int k = 0; k <= gridEvent.VisibleRowCount; k++)
{
oCell = new DataGridCell(k, 4);
if(gridEvent[oCell].ToString() == "1")
{
gridEvent[oCell] = "In Progress";
}
else
{
gridEvent[oCell] = "Ended";
}
}
}

It throws an error that no set method is provided for the cell object. Am I missing something?

Thanks,
Ryan
AnswerRe: Whats wrong with this datagrid code? Pin
RB@Emphasys20-Oct-03 8:46
RB@Emphasys20-Oct-03 8:46 
GeneralRe: Whats wrong with this datagrid code? Pin
RB@Emphasys20-Oct-03 8:49
RB@Emphasys20-Oct-03 8:49 
GeneralAsyncCallBack and COM+ Pin
rick close20-Oct-03 8:09
rick close20-Oct-03 8:09 
GeneralRe: AsyncCallBack and COM+ Pin
Guillermo Rivero21-Oct-03 4:12
Guillermo Rivero21-Oct-03 4:12 
GeneralMouse Location Pin
Gary Kirkham20-Oct-03 7:30
Gary Kirkham20-Oct-03 7:30 
GeneralRe: Mouse Location Pin
Andreas Philipson20-Oct-03 8:24
Andreas Philipson20-Oct-03 8:24 
GeneralRe: Mouse Location Pin
Gary Kirkham20-Oct-03 9:03
Gary Kirkham20-Oct-03 9:03 
Generalfind I/O devices! Pin
waleed riaz20-Oct-03 1:49
waleed riaz20-Oct-03 1:49 
GeneralRe: find I/O devices! Pin
Heath Stewart20-Oct-03 6:20
protectorHeath Stewart20-Oct-03 6:20 
GeneralMaking a single control as Windows Forms Control and Web Forms Control Pin
Muhammad Nauman Khan20-Oct-03 1:00
Muhammad Nauman Khan20-Oct-03 1:00 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Mike Ellison20-Oct-03 1:52
Mike Ellison20-Oct-03 1:52 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Muhammad Nauman Khan20-Oct-03 2:16
Muhammad Nauman Khan20-Oct-03 2:16 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Judah Gabriel Himango20-Oct-03 4:40
sponsorJudah Gabriel Himango20-Oct-03 4:40 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Judah Gabriel Himango20-Oct-03 5:06
sponsorJudah Gabriel Himango20-Oct-03 5:06 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Heath Stewart20-Oct-03 5:26
protectorHeath Stewart20-Oct-03 5:26 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Tomas Petricek20-Oct-03 5:09
Tomas Petricek20-Oct-03 5:09 
GeneralRe: Making a single control as Windows Forms Control and Web Forms Control Pin
Judah Gabriel Himango20-Oct-03 5:23
sponsorJudah Gabriel Himango20-Oct-03 5:23 

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.