Click here to Skip to main content
15,895,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Virtual Reality [modified] Pin
Paul Conrad26-Sep-07 17:56
professionalPaul Conrad26-Sep-07 17:56 
GeneralRe: Virtual Reality Pin
leckey26-Sep-07 3:21
leckey26-Sep-07 3:21 
AnswerRe: Virtual Reality Pin
Sathesh Sakthivel25-Sep-07 19:31
Sathesh Sakthivel25-Sep-07 19:31 
QuestionDriver Programming with C#. Pin
hdv21225-Sep-07 12:02
hdv21225-Sep-07 12:02 
AnswerRe: Driver Programming with C#. Pin
Erik Funkenbusch25-Sep-07 12:55
Erik Funkenbusch25-Sep-07 12:55 
GeneralRe: Driver Programming with C#. Pin
hdv21225-Sep-07 13:52
hdv21225-Sep-07 13:52 
GeneralRe: Driver Programming with C#. Pin
ESTAN26-Sep-07 0:32
ESTAN26-Sep-07 0:32 
QuestionGridView Row Deleting Pin
ss.mmm25-Sep-07 10:21
ss.mmm25-Sep-07 10:21 
Here am trying to delete the row in the dataset for Delete button click on each row and finally, when I click SAVE button, the entire dataset will be pushed into the db.

protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataSet dsGr = (DataSet)Cache["MyGrid"];
int RowID = (int)GridView1.DataKeys[e.RowIndex].Value;
dsGr.Tables[0].Rows[RowID].Delete();
Cache["MyGrid"] = dsGr;
GridView1.DataSource = dsGr;
GridView1.DataBind();
}
The DataKeyNames property for gridview is set to "id".

When I delete the first row on the grid, the RowID=1 and hence the first row on the dataset gets deleted but actually the first row (0th row) should be deleted. Can you please suggest if am going wrong on identifying the RowID?

int RowID = (int)GridView1.DataKeys[e.RowIndex].Value;
Just guide me how to find the correct RowID



Thanks.
AnswerRe: GridView Row Deleting Pin
Jpuckett25-Sep-07 11:19
Jpuckett25-Sep-07 11:19 
GeneralRe: GridView Row Deleting Pin
ss.mmm25-Sep-07 11:28
ss.mmm25-Sep-07 11:28 
QuestionSpecial Control!!!!!! Pin
half-life25-Sep-07 10:04
half-life25-Sep-07 10:04 
AnswerRe: Special Control!!!!!! Pin
Dave Kreskowiak25-Sep-07 10:13
mveDave Kreskowiak25-Sep-07 10:13 
GeneralRe: Special Control!!!!!! Pin
half-life25-Sep-07 10:15
half-life25-Sep-07 10:15 
GeneralRe: Special Control!!!!!! Pin
Dave Kreskowiak25-Sep-07 11:01
mveDave Kreskowiak25-Sep-07 11:01 
AnswerRe: Special Control!!!!!! Pin
Christian Graus25-Sep-07 11:02
protectorChristian Graus25-Sep-07 11:02 
QuestionTableAdapter.Update will not save my data Pin
Christopher Thornburg25-Sep-07 9:23
Christopher Thornburg25-Sep-07 9:23 
AnswerRe: TableAdapter.Update will not save my data Pin
Dave Kreskowiak25-Sep-07 10:11
mveDave Kreskowiak25-Sep-07 10:11 
GeneralRe: TableAdapter.Update will not save my data Pin
Christopher Thornburg25-Sep-07 10:32
Christopher Thornburg25-Sep-07 10:32 
GeneralRe: TableAdapter.Update will not save my data Pin
Jpuckett25-Sep-07 10:44
Jpuckett25-Sep-07 10:44 
GeneralRe: TableAdapter.Update will not save my data Pin
Christopher Thornburg25-Sep-07 10:51
Christopher Thornburg25-Sep-07 10:51 
Questionhow to find image on the screen Pin
doktorno25-Sep-07 9:17
doktorno25-Sep-07 9:17 
AnswerRe: how to find image on the screen Pin
Christian Graus25-Sep-07 11:03
protectorChristian Graus25-Sep-07 11:03 
GeneralRe: how to find image on the screen Pin
Dan Neely25-Sep-07 11:15
Dan Neely25-Sep-07 11:15 
GeneralRe: how to find image on the screen Pin
Christian Graus25-Sep-07 11:22
protectorChristian Graus25-Sep-07 11:22 
QuestionHow to cause volume fragmentation? Pin
MammPo25-Sep-07 8:02
MammPo25-Sep-07 8: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.