Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel Issue Pin
C#Coudou25-Jun-08 21:34
C#Coudou25-Jun-08 21:34 
GeneralRe: Excel Issue Pin
Ashfield26-Jun-08 0:48
Ashfield26-Jun-08 0:48 
QuestionHowTo: Move DataBase Pin
Ariadne25-Jun-08 21:05
Ariadne25-Jun-08 21:05 
AnswerRe: HowTo: Move DataBase Pin
Ashfield25-Jun-08 21:19
Ashfield25-Jun-08 21:19 
AnswerRe: HowTo: Move DataBase Pin
Abhijit Jana25-Jun-08 21:31
professionalAbhijit Jana25-Jun-08 21:31 
GeneralRe: HowTo: Move DataBase Pin
Ariadne25-Jun-08 22:08
Ariadne25-Jun-08 22:08 
AnswerRe: HowTo: Move DataBase [modified] Pin
Ariadne25-Jun-08 23:41
Ariadne25-Jun-08 23:41 
Question'int' does not contain a definition for 'dataKeys' Pin
twistz25-Jun-08 20:48
twistz25-Jun-08 20:48 
protected void bn_delete_Click(object sender, EventArgs e)
{
bool atLeastOneRowDeleted = false;

// Iterate through the Products.Rows property
foreach (GridViewRow row in GridView1.Rows)
{
// Access the CheckBox
CheckBox cb = (CheckBox)row.FindControl("CheckBox1");
if (cb != null && cb.Checked)
{
// Delete row! (Well, not really...)
atLeastOneRowDeleted = true;

// First, get the StaffID for the selected row
int StaffID = Convert.ToInt32(StaffID.DataKeys[row.RowIndex].Value);

//"Delete" the row
DeleteResults.Text += string.Format
("This would have deleted StaffID {0}<br />", GridView1);


}
}
AnswerRe: 'int' does not contain a definition for 'dataKeys' Pin
leppie25-Jun-08 21:21
leppie25-Jun-08 21:21 
AnswerRe: 'int' does not contain a definition for 'dataKeys' Pin
Ashfield25-Jun-08 21:22
Ashfield25-Jun-08 21:22 
GeneralRe: 'int' does not contain a definition for 'dataKeys' Pin
Guffa26-Jun-08 0:27
Guffa26-Jun-08 0:27 
QuestionSplitString Pin
stancrm25-Jun-08 20:45
stancrm25-Jun-08 20:45 
AnswerRe: SplitString Pin
Ash2025-Jun-08 21:09
Ash2025-Jun-08 21:09 
AnswerRe: SplitString Pin
Abhijit Jana25-Jun-08 21:27
professionalAbhijit Jana25-Jun-08 21:27 
GeneralRe: SplitString Pin
stancrm25-Jun-08 21:31
stancrm25-Jun-08 21:31 
GeneralRe: SplitString Pin
Abhijit Jana25-Jun-08 21:47
professionalAbhijit Jana25-Jun-08 21:47 
GeneralRe: SplitString Pin
stancrm25-Jun-08 21:57
stancrm25-Jun-08 21:57 
GeneralRe: SplitString Pin
Mbah Dhaim25-Jun-08 23:15
Mbah Dhaim25-Jun-08 23:15 
AnswerRe: SplitString Pin
wasimsharp25-Jun-08 21:44
wasimsharp25-Jun-08 21:44 
AnswerRe: SplitString [modified] Pin
mabo4226-Jun-08 1:36
mabo4226-Jun-08 1:36 
GeneralRe: SplitString Pin
stancrm26-Jun-08 3:44
stancrm26-Jun-08 3:44 
QuestionIn Key-Value Pairs , keys need not be unique , which Collection to use? Pin
Ash2025-Jun-08 20:26
Ash2025-Jun-08 20:26 
AnswerRe: In Key-Value Pairs , keys need not be unique , which Collection to use? Pin
C1AllenS25-Jun-08 20:44
C1AllenS25-Jun-08 20:44 
GeneralRe: In Key-Value Pairs , keys need not be unique , which Collection to use? Pin
Ash2025-Jun-08 21:06
Ash2025-Jun-08 21:06 
GeneralRe: In Key-Value Pairs , keys need not be unique , which Collection to use? Pin
leppie25-Jun-08 21:23
leppie25-Jun-08 21: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.