Click here to Skip to main content
16,018,092 members
Home / Discussions / C#
   

C#

 
QuestionPInvoke on a COM / OLE Object Pin
Tristan Rhodes16-Aug-07 2:45
Tristan Rhodes16-Aug-07 2:45 
AnswerRe: PInvoke on a COM / OLE Object Pin
Giorgi Dalakishvili16-Aug-07 3:14
mentorGiorgi Dalakishvili16-Aug-07 3:14 
QuestionHow to select xmls nodes based on multiple filter criteria Pin
Harkamal Singh16-Aug-07 1:42
Harkamal Singh16-Aug-07 1:42 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
pmarfleet16-Aug-07 2:09
pmarfleet16-Aug-07 2:09 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
Rocky#16-Aug-07 2:20
Rocky#16-Aug-07 2:20 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
Harkamal Singh16-Aug-07 2:49
Harkamal Singh16-Aug-07 2:49 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
sathish s16-Aug-07 2:26
sathish s16-Aug-07 2:26 
QuestionHelp regarding datagridviewcheckboxcolumn Pin
anu8116-Aug-07 1:37
anu8116-Aug-07 1:37 
hi all,

i am using a datagridview and set the datasource to a datatable in my windows application. i added a datagridviewcheckboxcolumn representing status for each of my row.

I need to get the values of all rows where checkbox is selected.

i tried the following code

for (int i = 0; i < datagridview1.Rows.Count; i++)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)datagridview1.Rows[i].Cells[1];
if (cell.value.tostring() == "true")
{
MessageBox.Show(datagridview1.Rows[i].Cells[0].value.tostring());
}
}

if i have two rows in my datagrid, and if i checked both rows only the first row value is displayed. the second row value is not selected.the last row value is not displayed.

can anyone suggest me where i am going wrong? how to implement this?





Thanks in advance.Smile | :)

Regards

Anuradha
AnswerRe: Help regarding datagridviewcheckboxcolumn Pin
Rocky#16-Aug-07 2:26
Rocky#16-Aug-07 2:26 
QuestionDeclaring Global variables in .cs file Pin
JamesBarnes16-Aug-07 1:25
JamesBarnes16-Aug-07 1:25 
AnswerRe: Declaring Global variables in .cs file Pin
Rocky#16-Aug-07 1:28
Rocky#16-Aug-07 1:28 
AnswerRe: Declaring Global variables in .cs file Pin
Bekjong16-Aug-07 1:29
Bekjong16-Aug-07 1:29 
JokeRe: Declaring Global variables in .cs file Pin
JamesBarnes16-Aug-07 1:33
JamesBarnes16-Aug-07 1:33 
GeneralForgot to mention ... Pin
JamesBarnes16-Aug-07 1:35
JamesBarnes16-Aug-07 1:35 
GeneralRe: Forgot to mention ... Pin
Giorgi Dalakishvili16-Aug-07 1:38
mentorGiorgi Dalakishvili16-Aug-07 1:38 
GeneralRe: Forgot to mention ... Pin
J4amieC16-Aug-07 3:27
J4amieC16-Aug-07 3:27 
GeneralAdditional thoughts Pin
Urs Enzler16-Aug-07 3:39
Urs Enzler16-Aug-07 3:39 
AnswerRe: Declaring Global variables in .cs file Pin
User 167325216-Aug-07 14:36
User 167325216-Aug-07 14:36 
QuestionRetrieving the installed softwares in WMI [modified] Pin
toink toink16-Aug-07 1:02
toink toink16-Aug-07 1:02 
AnswerRe: Retrieving the installed softwares in WMI Pin
Harkamal Singh16-Aug-07 1:53
Harkamal Singh16-Aug-07 1:53 
GeneralRe: Retrieving the installed softwares in WMI Pin
Scott Dorman16-Aug-07 3:50
professionalScott Dorman16-Aug-07 3:50 
AnswerRe: Retrieving the installed softwares in WMI Pin
Scott Dorman16-Aug-07 3:49
professionalScott Dorman16-Aug-07 3:49 
GeneralRe: Retrieving the installed softwares in WMI Pin
toink toink23-Aug-07 0:47
toink toink23-Aug-07 0:47 
GeneralRe: Retrieving the installed softwares in WMI Pin
Scott Dorman23-Aug-07 3:06
professionalScott Dorman23-Aug-07 3:06 
QuestionDataGridView Pin
nasambur16-Aug-07 0:56
nasambur16-Aug-07 0:56 

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.