Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
QuestionSimplify this code Pin
eggie51-Aug-07 8:16
eggie51-Aug-07 8:16 
AnswerRe: Simplify this code Pin
eggie51-Aug-07 8:31
eggie51-Aug-07 8:31 
GeneralRe: Simplify this code Pin
Luc Pattyn1-Aug-07 8:43
sitebuilderLuc Pattyn1-Aug-07 8:43 
AnswerRe: Simplify this code Pin
Not Active1-Aug-07 9:04
mentorNot Active1-Aug-07 9:04 
QuestionListViews and Context Menus.., Pin
Shy Agam1-Aug-07 7:49
Shy Agam1-Aug-07 7:49 
AnswerRe: ListViews and Context Menus.., Pin
Shy Agam1-Aug-07 8:56
Shy Agam1-Aug-07 8:56 
QuestionTableAdapter Configuration failure Pin
lsconyer1-Aug-07 7:14
lsconyer1-Aug-07 7:14 
QuestionDataGrid Pin
ramdil1-Aug-07 5:59
ramdil1-Aug-07 5:59 
Hi all
I am working with datagrid of 2005.I have 10 rows in it.It has three columns.
Id,Name,ParentId
Now my scenario is that if first records id is the parent id for all other 9 records, i need to select entire rows.for that i was using grid.select property but its not working,means its not getting selected
i am giving the partial code..can anyone give me what is gng wrong in this code
Advnaced thanks
for (int tmpCnt = 0; tmpCnt < AuthorisedTable.Rows.Count; tmpCnt++)
{
//if (dataGridAuthorised.IsSelected(tmpCnt) )//
if (AuthorisedTable.Rows[tmpCnt]["Type"].ToString()=="Meeting")
{
string tmpOtherID = (AuthorisedTable.Rows[tmpCnt]["EventId"].ToString());
for (int tmpRace = 0; tmpRace < AuthorisedTable.Rows.Count; tmpRace++)
{
if (AuthorisedTable.Rows[tmpRace]["OtherID"].ToString() == tmpOtherID)
{
this.dataGridAuthorised.Select(tmpRace);
}
}
}
}


Regards
DilipRam

AnswerRe: DataGrid Pin
il_masacratore1-Aug-07 6:36
il_masacratore1-Aug-07 6:36 
GeneralRe: DataGrid Pin
ramdil1-Aug-07 6:46
ramdil1-Aug-07 6:46 
QuestionHow can i know witch button send me the event ? Pin
Yanshof1-Aug-07 5:32
Yanshof1-Aug-07 5:32 
AnswerRe: How can i know witch button send me the event ? Pin
Tarakeshwar Reddy1-Aug-07 5:38
professionalTarakeshwar Reddy1-Aug-07 5:38 
GeneralRe: How can i know witch button send me the event ? Pin
Yanshof1-Aug-07 5:41
Yanshof1-Aug-07 5:41 
GeneralRe: How can i know witch button send me the event ? Pin
il_masacratore1-Aug-07 5:49
il_masacratore1-Aug-07 5:49 
GeneralRe: How can i know witch button send me the event ? Pin
Martin#1-Aug-07 5:52
Martin#1-Aug-07 5:52 
GeneralThanks Pin
Yanshof1-Aug-07 6:04
Yanshof1-Aug-07 6:04 
GeneralYou are wellcome! Pin
Martin#1-Aug-07 6:15
Martin#1-Aug-07 6:15 
AnswerRe: How can i know witch button send me the event ? Pin
Scott Dorman1-Aug-07 13:32
professionalScott Dorman1-Aug-07 13:32 
QuestionDatabase Pin
Xmen Real 1-Aug-07 4:59
professional Xmen Real 1-Aug-07 4:59 
AnswerRe: Database Pin
Pete O'Hanlon1-Aug-07 5:09
mvePete O'Hanlon1-Aug-07 5:09 
AnswerRe: Database Pin
Blue_Boy1-Aug-07 5:11
Blue_Boy1-Aug-07 5:11 
QuestionSerial port and reading HEX(FF) Pin
mn759301-Aug-07 4:56
mn759301-Aug-07 4:56 
AnswerRe: Serial port and reading HEX(FF) Pin
Eike Mueller1-Aug-07 5:45
Eike Mueller1-Aug-07 5:45 
AnswerRe: Serial port and reading HEX(FF) Pin
Luc Pattyn1-Aug-07 5:49
sitebuilderLuc Pattyn1-Aug-07 5:49 
AnswerRe: Serial port and reading HEX(FF) Pin
mn759301-Aug-07 21:49
mn759301-Aug-07 21:49 

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.