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

C#

 
GeneralRe: Message formatting question (expires on sunday) Pin
Luc Pattyn28-Jul-07 4:40
sitebuilderLuc Pattyn28-Jul-07 4:40 
GeneralRe: Message formatting question (expires on sunday) Pin
BoneSoft28-Jul-07 8:12
BoneSoft28-Jul-07 8:12 
GeneralRe: Message formatting question (expires on sunday) Pin
Luc Pattyn28-Jul-07 9:09
sitebuilderLuc Pattyn28-Jul-07 9:09 
QuestionList Pin
sangramkp25-Jul-07 3:14
sangramkp25-Jul-07 3:14 
AnswerRe: List Pin
Guffa25-Jul-07 3:22
Guffa25-Jul-07 3:22 
AnswerRe: List Pin
PhilDanger25-Jul-07 3:29
PhilDanger25-Jul-07 3:29 
GeneralRe: List Pin
sangramkp25-Jul-07 4:50
sangramkp25-Jul-07 4:50 
GeneralRe: List Pin
PhilDanger25-Jul-07 5:01
PhilDanger25-Jul-07 5:01 
In your loop that iterates through the DataGridView, assume that you have two values RowIndex and ColumnIndex that point to the appropriate cell.

//this is inside the loop of the datagrid view...
SeatEntity gridSeat = (SeatEntity)gridView[ColumnIndex, RowIndex].Value;
//We did a few things here, we indexed into the gridView using the column and the row, this returns a DataGridViewCell.
//We then used the .Value property to get what is stored inside.  Since this returns an object, we cast it to the type that we stored in the grid (I'm assuming you're storing SeatEntitys).

//now we can loop through the list and compare the values
foreach(SeatEntity seat in seatList){
    if(seat.SeatId == gridSeat.SeatId){
         //do something
    }
}

GeneralRe: List Pin
sangramkp25-Jul-07 6:32
sangramkp25-Jul-07 6:32 
GeneralRe: List Pin
PhilDanger25-Jul-07 6:50
PhilDanger25-Jul-07 6:50 
AnswerRe: help needed using gprs connection Pin
Justin Perez25-Jul-07 3:06
Justin Perez25-Jul-07 3:06 
QuestionGenerating Unique Numbers Pin
Jalpesh B. Patel25-Jul-07 2:55
Jalpesh B. Patel25-Jul-07 2:55 
AnswerRe: Generating Unique Numbers Pin
Colin Angus Mackay25-Jul-07 3:01
Colin Angus Mackay25-Jul-07 3:01 
GeneralRe: Generating Unique Numbers Pin
Luc Pattyn25-Jul-07 3:48
sitebuilderLuc Pattyn25-Jul-07 3:48 
GeneralRe: Generating Unique Numbers Pin
Colin Angus Mackay25-Jul-07 4:03
Colin Angus Mackay25-Jul-07 4:03 
GeneralRe: Generating Unique Numbers Pin
Luc Pattyn25-Jul-07 4:11
sitebuilderLuc Pattyn25-Jul-07 4:11 
GeneralRe: Generating Unique Numbers Pin
CPallini25-Jul-07 4:19
mveCPallini25-Jul-07 4:19 
GeneralRe: Generating Unique Numbers Pin
CPallini25-Jul-07 4:15
mveCPallini25-Jul-07 4:15 
GeneralRe: Generating Unique Numbers Pin
Colin Angus Mackay25-Jul-07 10:43
Colin Angus Mackay25-Jul-07 10:43 
GeneralRe: Generating Unique Numbers Pin
Jalpesh B. Patel25-Jul-07 4:01
Jalpesh B. Patel25-Jul-07 4:01 
GeneralRe: Generating Unique Numbers Pin
Colin Angus Mackay25-Jul-07 4:05
Colin Angus Mackay25-Jul-07 4:05 
GeneralRe: Generating Unique Numbers Pin
Jalpesh B. Patel25-Jul-07 4:08
Jalpesh B. Patel25-Jul-07 4:08 
GeneralRe: Generating Unique Numbers Pin
Colin Angus Mackay25-Jul-07 4:10
Colin Angus Mackay25-Jul-07 4:10 
GeneralRe: Generating Unique Numbers Pin
Jalpesh B. Patel25-Jul-07 4:10
Jalpesh B. Patel25-Jul-07 4:10 
AnswerRe: Generating Unique Numbers Pin
Justin Perez25-Jul-07 3:02
Justin Perez25-Jul-07 3:02 

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.