Search Options
close
Search the following clips:
All Clips
Sign Up
Install
Learn More
Login
ADO.NET 2.0 - DataRow.RowState
fmcypriano
follow
0
7-12-2006 9:06 AM
253 views
tags:
.net
,
ado.net
,
datarow
,
rowstate
,
dicas
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Grow your own false teeth
My response to McAfee about Clipmarks
Hacked STOP Signs (Photos)
The Known Universe
Woman Annoyed over Cat
Miracle at Memorial: Mom and Baby Die During Labor, Revived
Moonbeams
Danish Paper - Obama Greater Than Jesus
Amazing Clouds
Father Kills Mother and Baby Because 'She Wasn't Born a Boy'
visit the
Top Clips page
View the Top Clips from
July 12, 2006
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/0b0abb81-a4ec-4ecd-a3c1-a79feda5d5ac/3DC45CF8-DB91-455A-843B-A6019CE43586/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.imasters.com.br/artigo/4327" href="http://www.imasters.com.br/artigo/4327" style="font-size: 11px;">www.imasters.com.br</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.imasters.com.br/artigo/4327"><P class="texto">Quando uma linha é modificada em um DataSet, o RowState da linha pode assumir os seguintes valores: Modified, Added ou Unchanged.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.imasters.com.br/artigo/4327"><P class="texto">Na versão anterior da ADO.NET, estes valores não podiam ser configurados diretamente, <STRONG>mas na ADO.NET 2.0</STRONG> podemos configurar diretamente o estado da linha através dos novos métodos : </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.imasters.com.br/artigo/4327"><P class="texto"><STRONG><FONT color="#003399">01. </FONT>SetModified</STRONG> (Altera o estado da linha para Modified) </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.imasters.com.br/artigo/4327"><P class="texto"><STRONG><FONT color="#003399">02. </FONT>SetAdded</STRONG> (altera o estado da linha para Added) </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.imasters.com.br/artigo/4327"><P class="texto">A propriedade <STRONG>RowState</STRONG> retorna um dos valores da enumeração <STRONG>DataRowState</STRONG> da classe DataRow. Abaixo temos os valores possíveis:</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.imasters.com.br/artigo/4327"><TABLE width="450" height="96" cellspacing="1" cellpadding="5" bordercolor="#cccccc" border="1"><TBODY><TR valign="top"><TH width="101" height="16" bgcolor="#0066ff"> <P align="left" class="texto"><FONT color="#ffffff">Nome do Membro</FONT></P></TH><TH width="383" height="16" bgcolor="#0066ff" class="texto"><FONT color="#ffffff">Descrição</FONT></TH><TH width="36" height="16" bgcolor="#0066ff" class="texto"><FONT color="#ffffff">Valor</FONT></TH></TR><TR valign="top"><TD width="101" height="16" bgcolor="F7F7F7" class="texto"><STRONG>Added </STRONG></TD><TD width="383" height="16" bgcolor="F7F7F7" class="texto">A linha foi adicionada a <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowcollectionclasstopic.asp">DataRowCollection</A> e <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowclassacceptchangestopic.asp">AcceptChanges</A> não foi invocado.</TD><TD width="36" height="16" bgcolor="F7F7F7" align="middle" class="texto"><DIV align="center"><STRONG>4</STRONG></DIV></TD></TR><TR valign="top"><TD width="101" height="16" bgcolor="F7F7F7" class="texto"><STRONG>Deleted </STRONG></TD><TD width="383" height="16" bgcolor="F7F7F7" class="texto">A linha foi eliminada usando o método <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowclassdeletetopic.asp">Delete</A> da classe <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowclasstopic.asp">DataRow</A>.</TD><TD width="36" height="16" bgcolor="F7F7F7" align="middle" class="texto"><DIV align="center"><STRONG>8</STRONG></DIV></TD></TR><TR valign="top"><TD width="101" height="16" bgcolor="F7F7F7" class="texto"><STRONG>Detached </STRONG></TD><TD width="383" height="16" bgcolor="F7F7F7" class="texto">A linha foi criada mas ainda não é parte de um <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowcollectionclasstopic.asp">DataRowCollection</A>. </TD><TD width="36" height="16" bgcolor="F7F7F7" align="middle" class="texto"><DIV align="center"><STRONG>1</STRONG></DIV></TD></TR><TR valign="top"><TD width="101" height="11" bgcolor="F7F7F7" class="texto"><STRONG>Modified </STRONG></TD><TD width="383" height="11" bgcolor="F7F7F7" class="texto">A linha foi modificada e o método <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowclassacceptchangestopic.asp">AcceptChanges</A> não foi chamado.</TD><TD width="36" height="11" bgcolor="F7F7F7" align="middle" class="texto"><DIV align="center"><STRONG>16</STRONG></DIV></TD></TR><TR valign="top"><TD width="101" height="16" bgcolor="F7F7F7" class="texto"><STRONG>Unchanged </STRONG></TD><TD width="383" height="16" bgcolor="F7F7F7" class="texto">A linha não foi alterada desde que o último <A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatarowclassacceptchangestopic.asp">AcceptChanges</A> foi chamado.</TD><TD width="36" height="16" bgcolor="F7F7F7" align="middle" class="texto"><DIV align="center"><STRONG>2</STRONG></DIV></TD></TR></TBODY></TABLE></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/3DC45CF8-DB91-455A-843B-A6019CE43586/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK