DataRow

  • Thread starter Thread starter ReneMarxis
  • Start date Start date
R

ReneMarxis

Hello

is there some way to update a Row (the actual one) in a
DataTable_RowChanged Event? The only way i see is to use a small
"statemachine".

_tia rene
 
Rene,

Well, the DataRowChangeEventArgs instance passed to the method contains
the row that was changed. What else are you trying to do?
 
Rene,

Well, the DataRowChangeEventArgs instance passed to the method contains
the row that was changed. What else are you trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


is there some way to update a Row (the actual one) in a
DataTable_RowChanged Event? The only way i see is to use a small
"statemachine".
_tia rene

Yes but if i change that row inside the event i get an infinite loop.
I like to change 2 cols in the row (modifier/modifiedat)

atm i do that

isCahngeing=true;
if (!isChanging){
change row
}
isCahngeing=false;

Just wanted to know if there is a designated way to do it in .Net
 
Rene,

I understand what you mean now. Unfortunately, that's what you have to
do.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

ReneMarxis said:
Rene,

Well, the DataRowChangeEventArgs instance passed to the method
contains
the row that was changed. What else are you trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


is there some way to update a Row (the actual one) in a
DataTable_RowChanged Event? The only way i see is to use a small
"statemachine".
_tia rene

Yes but if i change that row inside the event i get an infinite loop.
I like to change 2 cols in the row (modifier/modifiedat)

atm i do that

isCahngeing=true;
if (!isChanging){
change row
}
isCahngeing=false;

Just wanted to know if there is a designated way to do it in .Net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DataGridView and comboboxes 2
DataGridView and sorting 4
DataRelations 1
rowchanged event 2
datatable 2
convert a DataRow to a StringArray 9
Datatable Filtering 2
Pressing button 6

Back
Top