Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
QuestionOld C New C# Pin
buggity31-Aug-05 5:51
buggity31-Aug-05 5:51 
AnswerRe: Old C New C# Pin
Mohamad Al Husseiny31-Aug-05 6:17
Mohamad Al Husseiny31-Aug-05 6:17 
Questionmethod Pin
HFreitas31-Aug-05 5:30
HFreitas31-Aug-05 5:30 
AnswerRe: method Pin
Yoyosch31-Aug-05 6:01
Yoyosch31-Aug-05 6:01 
AnswerRe: method Pin
Judah Gabriel Himango31-Aug-05 6:23
sponsorJudah Gabriel Himango31-Aug-05 6:23 
AnswerRe: method Pin
Mohamad Al Husseiny31-Aug-05 6:26
Mohamad Al Husseiny31-Aug-05 6:26 
AnswerRe: method Pin
Guffa31-Aug-05 7:50
Guffa31-Aug-05 7:50 
QuestionUpdating Datagrid Cell Value Pin
Member 156189431-Aug-05 5:20
Member 156189431-Aug-05 5:20 
Hi All,

This probably really easy for somebody out there but this problem is doing my head in! What i want to do is update a a single cell in a in a datarow of a datagrid with a value from a textbox so i don't have use a query to repopulate the datagrid after a update query.

What i've tried
Updating the DataTable or DataSet from the datagrid before updating with the following code:
1)mydatatable.Rows[lastUpdatedRecord].ItemArray.SetValue(int.Parse(txtVal.Text),0);
2)ds.Tables[0].Columns[0].Table.Rows[lastUpdatedRecord].ItemArray.SetValue(int.Parse(txtVal.Text),0);

and then rebind it to the datagrid.

My problem is that the "ItemArray.SetValue" method doesn't seem to be updating the value when i check it through the step through debugging.

Please help,
Thanks in advance



confused
AnswerRe: Updating Datagrid Cell Value Pin
Alomgir Miah31-Aug-05 6:58
Alomgir Miah31-Aug-05 6:58 
GeneralRe: Updating Datagrid Cell Value Pin
wiseylondon31-Aug-05 22:20
susswiseylondon31-Aug-05 22:20 
GeneralRe: Updating Datagrid Cell Value Pin
mav.northwind31-Aug-05 22:56
mav.northwind31-Aug-05 22:56 
GeneralRe: Updating Datagrid Cell Value Pin
wiseylondon1-Sep-05 0:02
susswiseylondon1-Sep-05 0:02 
Questionc++ codeparser Pin
profoundwhispers31-Aug-05 5:00
profoundwhispers31-Aug-05 5:00 
AnswerRe: c++ codeparser Pin
Alomgir Miah31-Aug-05 6:59
Alomgir Miah31-Aug-05 6:59 
AnswerRe: c++ codeparser Pin
S. Senthil Kumar31-Aug-05 7:48
S. Senthil Kumar31-Aug-05 7:48 
AnswerRe: c++ codeparser Pin
VickyC#3-Sep-05 10:29
VickyC#3-Sep-05 10:29 
QuestionAdd reference problem ? Pin
Kash31-Aug-05 4:41
Kash31-Aug-05 4:41 
AnswerRe: Add reference problem ? Pin
Alomgir Miah31-Aug-05 7:02
Alomgir Miah31-Aug-05 7:02 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 7:12
Kash31-Aug-05 7:12 
GeneralRe: Add reference problem ? Pin
Dave Kreskowiak31-Aug-05 10:08
mveDave Kreskowiak31-Aug-05 10:08 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 23:34
Kash31-Aug-05 23:34 
GeneralRe: Add reference problem ? Pin
Dave Kreskowiak1-Sep-05 1:33
mveDave Kreskowiak1-Sep-05 1:33 
GeneralRe: Add reference problem ? Pin
Kash1-Sep-05 1:46
Kash1-Sep-05 1:46 
Questionremote database connection question Pin
theStorminMormon31-Aug-05 4:39
theStorminMormon31-Aug-05 4:39 
Answermy code doesn't really have smileys in it Pin
theStorminMormon31-Aug-05 4:42
theStorminMormon31-Aug-05 4:42 

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.