Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reflection Pin
Andy Brummer31-Aug-05 11:57
sitebuilderAndy Brummer31-Aug-05 11:57 
GeneralRe: Reflection Pin
Yoyosch31-Aug-05 12:02
Yoyosch31-Aug-05 12:02 
QuestionRe: Reflection Pin
Yoyosch31-Aug-05 12:38
Yoyosch31-Aug-05 12:38 
AnswerRe: Reflection Pin
Werdna31-Aug-05 13:50
Werdna31-Aug-05 13:50 
GeneralRe: Reflection Pin
Yoyosch31-Aug-05 14:15
Yoyosch31-Aug-05 14:15 
AnswerRe: Reflection Pin
Andy Brummer31-Aug-05 18:01
sitebuilderAndy Brummer31-Aug-05 18:01 
QuestionWindows Service arguments Pin
vSoares31-Aug-05 7:01
professionalvSoares31-Aug-05 7:01 
AnswerRe: Windows Service arguments Pin
Mohamad Al Husseiny31-Aug-05 7:18
Mohamad Al Husseiny31-Aug-05 7:18 
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 

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.