<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://xceed.com/CS/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Xceed Grid for .NET</title><link>http://xceed.com/CS/forums/11/ShowForum.aspx</link><description>Discussions about Xceed Grid for .NET</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Re: How to get cell value from selected row</title><link>http://xceed.com/CS/forums/thread/32232.aspx</link><pubDate>Mon, 11 Jun 2012 11:27:22 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:32232</guid><dc:creator>steve</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/32232.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=32232</wfw:commentRss><description>&lt;p&gt;Frederic, I am in similar situation where I have to get cell value from row, using QTP.&lt;br&gt;&lt;/p&gt;&lt;p&gt;Thank you for you reply, but I am not&amp;nbsp; under "you need to cast the collection of&amp;nbsp; &lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;Xceed.Grid.Row selectedRows property output by a - most likeley - inherited class CellRow."&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;In my case what is "gridcontrol1"?&lt;/p&gt;&lt;p&gt;if I execute below code, I get number of rows&lt;br&gt;Set x = SwfWindow("FormName").SwfObject("grid").Object.DataRows&lt;br&gt;y = x.Count&lt;br&gt;MsgBox y &lt;/p&gt;&lt;p&gt;if I execute below code,&lt;br&gt; Set t = SwfWindow("FormName").SwfObject("grid").Object.DataRows(0).&lt;br&gt;no options are displayed by QTP.&lt;br&gt;When I type "." QTP gives some options, example "SwfWindow("FormName").SwfObject("grid").Object.DataRows." QTP displayes count etc options and I can select, but when I type&lt;br&gt;"Set t = SwfWindow("FormName").SwfObject("grid").Object.DataRows(0)." no options are displayed&lt;/p&gt;&lt;p&gt;Can you please help me? &lt;br&gt;&lt;/p&gt;</description></item><item><title>Re: How to get cell value from selected row</title><link>http://xceed.com/CS/forums/thread/31743.aspx</link><pubDate>Fri, 24 Feb 2012 23:11:10 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31743</guid><dc:creator>Frederic</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31743.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31743</wfw:commentRss><description>&lt;p&gt;Found the solution but it's ULTRA COUNTER INTUITIVE: you need to cast the collection of&amp;nbsp; &lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;Xceed.Grid.Row selectedRows property output by a - most likeley - inherited class CellRow. Thus, answer is:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Consolas"&gt;(Xceed.Grid.CellRow)gridControl1.SelectedRows[0].Cells[&amp;lt;field name&amp;gt;].Value&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>How to get cell value from selected row</title><link>http://xceed.com/CS/forums/thread/31742.aspx</link><pubDate>Fri, 24 Feb 2012 22:34:09 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31742</guid><dc:creator>Frederic</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31742.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31742</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;In the SelectedRowsChanged event, how to get the value of
a selected row's cell by column name&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;o:p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I'm expecting something like &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;gridControl1.SelectedRows[0].Cells[&amp;lt;field name&amp;gt;].value&lt;/strong&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;but Cells collection doesn't exist in this context....&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;o:p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoPlainText"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Thanks&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;</description></item></channel></rss>