Click here to Skip to main content
15,894,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows service suspend and continue option Pin
Electron Shepherd14-Oct-10 3:42
Electron Shepherd14-Oct-10 3:42 
GeneralRe: windows service suspend and continue option Pin
jschell15-Oct-10 8:29
jschell15-Oct-10 8:29 
GeneralRe: windows service suspend and continue option Pin
Electron Shepherd15-Oct-10 8:38
Electron Shepherd15-Oct-10 8:38 
AnswerRe: windows service suspend and continue option Pin
Calla13-Oct-10 21:37
Calla13-Oct-10 21:37 
GeneralRe: windows service suspend and continue option Pin
fracalifa13-Oct-10 22:36
fracalifa13-Oct-10 22:36 
GeneralRe: windows service suspend and continue option Pin
Calla13-Oct-10 22:50
Calla13-Oct-10 22:50 
NewsAsynchronous composition using LINQ/Extension methods Pin
Alex Shtof13-Oct-10 5:40
Alex Shtof13-Oct-10 5:40 
Questioncheckbox in a data grid view.... Pin
jainiraj13-Oct-10 2:45
jainiraj13-Oct-10 2:45 
I want that check box in a datagridview should act like a radio button.Means whenever I select a checkbox it will be selected and rest of all would be deselect.
I have used cellContentClick event of the datagrid view.Structure of the datagridview is like-
1st column is checkbox and 2nd is text box.following is the code i have used-

for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
if (i == e.RowIndex)
{
dataGridView1.Rows[i].Cells[0].Value = true;
}
else
{
dataGridView1.Rows[i].Cells[0].Value = false;
}
}

The above code runs good when i select another checkbox.But when one checkbox is selected/checked and now I again click on the same checkbox then it is deselected/unchecked.I want when the same checkbox is checked again it won't unchecked and remian checked.
How can I do this?
Thanks in adv....
AnswerRe: checkbox in a data grid view.... [modified] Pin
fjdiewornncalwe13-Oct-10 8:43
professionalfjdiewornncalwe13-Oct-10 8:43 
AnswerRe: checkbox in a data grid view.... Pin
ekba8913-Oct-10 8:59
ekba8913-Oct-10 8:59 
QuestionAdding Controls of user control ot the parent Form. Pin
Said Ali Jalali12-Oct-10 22:45
Said Ali Jalali12-Oct-10 22:45 
AnswerRe: Adding Controls of user control ot the parent Form. Pin
fjdiewornncalwe13-Oct-10 1:30
professionalfjdiewornncalwe13-Oct-10 1:30 
Questiondata transfers between two forms Pin
Erdinc2712-Oct-10 22:26
Erdinc2712-Oct-10 22:26 
AnswerRe: data transfers between two forms Pin
Blue_Boy12-Oct-10 22:39
Blue_Boy12-Oct-10 22:39 
GeneralRe: data transfers between two forms PinPopular
OriginalGriff12-Oct-10 22:44
mveOriginalGriff12-Oct-10 22:44 
GeneralRe: data transfers between two forms Pin
Blue_Boy12-Oct-10 22:48
Blue_Boy12-Oct-10 22:48 
AnswerRe: data transfers between two forms Pin
OriginalGriff12-Oct-10 22:41
mveOriginalGriff12-Oct-10 22:41 
GeneralRe: data transfers between two forms Pin
Erdinc2712-Oct-10 22:46
Erdinc2712-Oct-10 22:46 
GeneralRe: data transfers between two forms PinPopular
OriginalGriff12-Oct-10 23:00
mveOriginalGriff12-Oct-10 23:00 
GeneralRe: data transfers between two forms Pin
Erdinc2712-Oct-10 23:23
Erdinc2712-Oct-10 23:23 
AnswerRe: data transfers between two forms PinPopular
Pete O'Hanlon12-Oct-10 23:06
mvePete O'Hanlon12-Oct-10 23:06 
GeneralRe: data transfers between two forms Pin
Erdinc2712-Oct-10 23:24
Erdinc2712-Oct-10 23:24 
GeneralRe: data transfers between two forms Pin
Pete O'Hanlon12-Oct-10 23:29
mvePete O'Hanlon12-Oct-10 23:29 
GeneralRe: data transfers between two forms Pin
fjdiewornncalwe13-Oct-10 1:35
professionalfjdiewornncalwe13-Oct-10 1:35 
GeneralRe: data transfers between two forms Pin
Jason Henderson14-Oct-10 3:41
Jason Henderson14-Oct-10 3:41 

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.