GridView Selecthttp://forums.asp.net/t/1572822.aspx/1?GridView+SelectTue, 29 Jun 2010 15:53:20 -040015728223946134http://forums.asp.net/p/1572822/3946134.aspx/1?GridView+SelectGridView Select <p>Please i am trying to find out if its possible to select a row in a parent gridview and once that is selected....all the other rows in the Parent gridview is&nbsp; invisible...and the one i am working with is only seen on the gridview at that time.<br> </p> <p><br> </p> 2010-06-26T16:44:29-04:003946150http://forums.asp.net/p/1572822/3946150.aspx/1?Re+GridView+SelectRe: GridView Select <p>you can hide the other rows by setting Visible as false to other rows.</p> <p>can you explain the requirement little more pls.&nbsp;</p> 2010-06-26T17:08:27-04:003946181http://forums.asp.net/p/1572822/3946181.aspx/1?Re+GridView+SelectRe: GridView Select <p>Alright, </p> <p>I currently have a gridview binded to the database which is the parent and when its selected it post the child based on the ID.Now i have couple records on the gridview and once i select the one i need i want the others to be invinsible. so the one i am working on will show alone. using visible=&quot;flase&quot; will work for the whole Gridview,</p> <p><br> </p> <p>I hope you understand.<br> </p> 2010-06-26T17:32:17-04:003946213http://forums.asp.net/p/1572822/3946213.aspx/1?Re+GridView+SelectRe: GridView Select <p>What I understood from your description was</p> <p>You are using a nested gridview in which you are doing a postback&nbsp;to load some child gridview and once you select the row in the child gridview,</p> <p>You want to hide the others.</p> <p>You can do like this</p> <p>find the Child gridview in the code behind and in the selectedIndexChangedEvent,</p> <p>find the Gridviewrow selected and then</p> <p>gv.Rows.OfType&lt;GridViewRow&gt;().ToList().Where(a=&gt;a.RowIndex !=row.RowIndex).ToList().ForEach(b=&gt;b.Visible=false)</p> <p>it will get all the rows in teh child gridview and hide all rows except the row selected.</p> <p>Correct me if I understood your requirement wrong.</p> 2010-06-26T18:42:20-04:003946342http://forums.asp.net/p/1572822/3946342.aspx/1?Re+GridView+SelectRe: GridView Select <p>Yeah... You kind of onpoint but not quite... You are right about the nested grid. and i can only see my child grid based on the selection i make on the parent grid. Now.... once i select a row from the Parent grid.....it will automatically show me the child grid based on the selection</p> <p>Now my point is... if i have five records on the parent grid and select one of the records.... i only want the selected row to show instead of all the other 4.... Currently its highlights the selected record. but i will like to make the other records invisible while another record is seleted....</p> <p><br> </p> <p>I hope&nbsp; i explained better this time around<br> </p> <p><br> </p> 2010-06-27T00:15:40-04:003946661http://forums.asp.net/p/1572822/3946661.aspx/1?Re+GridView+SelectRe: GridView Select <p>In the&nbsp;Parent gridview selected index change event,</p> <p>get the&nbsp;row index from e.CommandArgument&nbsp; and then you can do like this</p> <p><strong>gridviewParent</strong>.Rows.OfType&lt;GridViewRow&gt;().ToList().Where(a=&gt;a.RowIndex !=<strong>selectedRowIndex</strong>.RowIndex).ToList().ForEach(b=&gt;b.Visible=false)</p> <p>That should get all rows except selected row and hide other rows.</p> <p>&nbsp;</p> 2010-06-27T14:24:33-04:003946912http://forums.asp.net/p/1572822/3946912.aspx/1?Re+GridView+SelectRe: GridView Select <p>Thanks Sansan... Am so confused about your syntax.... i used it and it game me errors. The only thing i changed&nbsp; was the gridviewparent to its name on my code....My gridview name is &quot;GridViewAll&quot;.... Could you please help write based on my gridview name.... my event handler is &quot;Protected Sub GridviewAll_SelectIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs).....Thanks<br> </p> 2010-06-27T20:13:25-04:003946921http://forums.asp.net/p/1572822/3946921.aspx/1?Re+GridView+SelectRe: GridView Select <p>u can try like this</p> <p>protected void GridViewAll_SelectedIndexChanged(object sender, EventArgs e)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GridViewAll.Rows.OfType&lt;GridViewRow&gt;().ToList().<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Where(a =&gt; a.RowIndex != GridViewAll.SelectedIndex).<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToList().ForEach(b =&gt; b.Visible = false);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> <p>Thanks&nbsp;</p> 2010-06-27T20:34:25-04:003946931http://forums.asp.net/p/1572822/3946931.aspx/1?Re+GridView+SelectRe: GridView Select <p>Thanks Again Sansan, just so you know .. i am using asp 3.5 so my handler will not accept void but sub... when i put in the code... it does not allowe &lt;GridviewRow&gt; and the &quot;a&quot; and &quot;b&quot;. i guess it needs to be declared. but i am woundering if it as to do with the event handler. What do you think<br> </p> <p><br> </p> 2010-06-27T20:56:13-04:003946936http://forums.asp.net/p/1572822/3946936.aspx/1?Re+GridView+SelectRe: GridView Select <p>If you are using&nbsp;C#, </p> <p>add using System.Linq;</p> <p>protected void GridViewAll_SelectedIndexChanged(object sender, EventArgs e)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GridViewAll.Rows.OfType&lt;GridViewRow&gt;().ToList().<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Where(a =&gt; a.RowIndex != GridViewAll.SelectedIndex).<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToList().ForEach(b =&gt; b.Visible = false);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> <p>If you are using VB,</p> <p>add Imports System.Linq;</p> <pre>Protected Sub GridViewAll_SelectedIndexChanged(sender As Object, e As EventArgs) GridViewAll.Rows.OfType(Of GridViewRow)().ToList().Where(Function(a) a.RowIndex &lt;&gt; GridViewAll.SelectedIndex).ToList().ForEach(Function(b) b.Visible= False) End Sub</pre> <pre>&nbsp;</pre> <pre>Hope this helps</pre> <p>&nbsp;</p> <p>&nbsp;</p> 2010-06-27T21:03:06-04:003946945http://forums.asp.net/p/1572822/3946945.aspx/1?Re+GridView+SelectRe: GridView Select <p>Hi oluts ...</p> <p>Try this</p> <pre class="prettyprint">Protected Sub GridViewAll_SelectedIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSelectEventArgs) Handles GridView1.SelectedIndexChanging GridViewAll.Rows.OfType(Of GridViewRow)().ToList().Where(Function(a) a.RowIndex &lt;&gt; GridViewAll.SelectedIndex).ToList().ForEach(Function(b) b.Visible = False) End Sub</pre> <p><br> <br> </p> <p><br> </p> 2010-06-27T21:08:27-04:003946958http://forums.asp.net/p/1572822/3946958.aspx/1?Re+GridView+SelectRe: GridView Select <p>Thanks Again and am so sorry if it taken me so long to get this.. .i am new to ASP. i tried the code and nothing happens. this is my event handler</p> <pre>Protected Sub GridViewAll_SelectedIndexChanged(ByVal sender As Object, ByVal e As System. EventArgs)<br><br><br>And also how do i add &quot;Import system.linq<br></pre> <p><br> </p> 2010-06-27T21:20:33-04:003946966http://forums.asp.net/p/1572822/3946966.aspx/1?Re+GridView+SelectRe: GridView Select <p>add that import at the beginning of the class</p> <p>Imports System.Linq</p> <p>and use this</p> <p>Protected Sub GridViewAll_SelectedIndexChanged(ByVal sender As Object, ByVal e As System. EventArgs) <span><strong>Handles</strong></span><span><strong>&nbsp;GridView1.SelectedIndexChanged</strong></span><br> <br> </p> 2010-06-27T21:25:20-04:003946970http://forums.asp.net/p/1572822/3946970.aspx/1?Re+GridView+SelectRe: GridView Select <p>Hisham,</p> <p>Thanks Your code did not work either. Not sure whats wrong...<br> </p> 2010-06-27T21:30:37-04:003946971http://forums.asp.net/p/1572822/3946971.aspx/1?Re+GridView+SelectRe: GridView Select <p>&nbsp;</p> <p>can you please post the code that you have written.</p> 2010-06-27T21:33:53-04:003946977http://forums.asp.net/p/1572822/3946977.aspx/1?Re+GridView+SelectRe: GridView Select <p>Protected Sub GridViewAll_SelectedIndexChanged(ByVal sender As Object, ByVal e As System. EventArgs) <span><b>Handles</b></span><span><b>&nbsp;GridViewAll.SelectedIndexChanged</b></span></p> <p>Imports System.Linq()<br> </p> <p><span>GridViewAll.Rows.OfType(Of&nbsp;GridViewRow)().ToList().Where(<span>Function</span><span>(a)&nbsp;a.RowIndex&nbsp;&lt;&gt;&nbsp;GridViewAll.SelectedIndex).ToList().ForEach(</span><span>Function</span><span>(b)&nbsp;b.Visible&nbsp;=&nbsp;</span><span>False</span><span>)&nbsp; </span></span></p> <p><br> </p> <p><span><span>End Sub.</span></span></p> <p><br> </p> <p><br> </p> <p><span><span>This does not work either <br> </span></span></p> 2010-06-27T21:41:49-04:003946984http://forums.asp.net/p/1572822/3946984.aspx/1?Re+GridView+SelectRe: GridView Select <p>what do you mean by not working.</p> <p>Did you&nbsp;set a breakpoint and see if that code is&nbsp;working.</p> <p>what did you use for showing select button. </p> <p>can you post the parent gridview code.</p> <p>&nbsp;</p> <p>Thanks.</p> 2010-06-27T21:51:37-04:003947006http://forums.asp.net/p/1572822/3947006.aspx/1?Re+GridView+SelectRe: GridView Select <p>Sansan, </p> <p>Sorry what i mean by not working is that .... with the code being there it does not perform what is intended. so pretty much its not working. here is my gridview code</p> <p><br> </p> <p>&lt;asp:GridView ID=&quot;GridViewAll&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot; CellPadding=&quot;4&quot; DataSourceID=&quot;RelationshipAll&quot; ForeColor=&quot;#333333&quot; OnRowDeleting=&quot;GridviewAll_rowdeleting&quot;<br> <br> &nbsp;<br> GridLines=&quot;None&quot; Visible =&quot;False&quot; onselectedindexchanged=&quot;GridViewAll_SelectedIndexChanged&quot; style=&quot;text-align: center; margin-bottom: 0px; margin-left: 59px;&quot; Width=&quot;1109px&quot; Height=&quot;215px&quot; DataKeyNames=&quot;recordid,banknumber&quot;&gt;<br> <br> &nbsp;<br> &lt;AlternatingRowStyle BackColor=&quot;White&quot; ForeColor=&quot;#284775&quot; /&gt;<br> &nbsp;<br> &lt;Columns&gt;<br> <br> &lt;asp:TemplateField ShowHeader=&quot;false&quot;&gt;<br> <br> &nbsp;<br> &lt;ItemTemplate&gt;<br> &nbsp;<br> &lt;asp:Button ID=&quot;butEntityEdit&quot; runat=&quot;server&quot; CausesValidation=&quot;False&quot; CommandName=&quot;Edit&quot; Text=&quot;Edit&quot; Font-Size=&quot;Smaller&quot; Height=&quot;25px&quot; style=&quot;font-size: x-small; font-weight: 700;&quot; Width=&quot;50px&quot; /&gt;<br> <br> &lt;asp:Button ID=&quot;BtnDelete&quot; runat=&quot;server&quot; CausesValidation=&quot;false&quot; CommandName=&quot;Delete&quot; Text=&quot;Delete&quot; OnClientClick=&quot;return confirm('Delete this record?');&quot; Font-Size=&quot;Smaller&quot; Height=&quot;25px&quot; style=&quot;font-size: x-small; font-weight: 700;&quot; Width=&quot;50px&quot;/&gt;<br> <br> &nbsp;<br> &lt;/ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;EditItemTemplate&gt;<br> &nbsp;<br> &lt;asp:Button ID=&quot;butEntityUpdate&quot; runat=&quot;server&quot; CausesValidation=&quot;True&quot; CommandName=&quot;Update&quot; Text=&quot;Update&quot; ValidationGroup=&quot;ValidGrpEntityUpdt&quot; Height=&quot;25px&quot; Width=&quot;50px&quot; style=&quot;font-size: x-small; font-weight: 700; color: #FF0000;&quot; /&gt;<br> &nbsp;<br> &amp;nbsp;&lt;asp:Button ID=&quot;butEntityCancel&quot; runat=&quot;server&quot; CausesValidation=&quot;False&quot; CommandName=&quot;Cancel&quot; Text=&quot;Cancel&quot; Height=&quot;25px&quot; Width=&quot;50px&quot; style=&quot;font-size: x-small; font-weight: 700; color: #FF0000;&quot; /&gt;<br> <br> &nbsp;<br> &lt;/EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;HeaderTemplate&gt;<br> &nbsp;<br> &lt;asp:Button ID=&quot;butAddEntity&quot; runat=&quot;server&quot; CommandName=&quot;Insert&quot; Font-Size=&quot;Smaller&quot; Height=&quot;25px&quot; style=&quot;font-weight: 700; color: #0066FF; font-size: x-small;&quot; Text=&quot; Add &quot; ValidationGroup=&quot;ValidGrpEntityAdd&quot; Width=&quot;50px&quot; OnClick=&quot;butAddEntity_Click&quot;/&gt;<br> &nbsp;<br> &amp;nbsp;&lt;asp:Button ID=&quot;butCancel&quot; runat=&quot;server&quot; CausesValidation=&quot;False&quot; CommandName=&quot;Cancel&quot; Font-Size=&quot;Smaller&quot; Height=&quot;25px&quot; style=&quot;color: #000099; font-weight: 700; font-size: x-small;&quot; Text=&quot;Return&quot; Width=&quot;50px&quot; /&gt;<br> <br> &nbsp;<br> &lt;/HeaderTemplate&gt;<br> <br> &nbsp;<br> &lt;HeaderStyle Wrap=&quot;False&quot; /&gt;<br> <br> &nbsp;<br> &lt;/asp:TemplateField&gt;<br> <br> <br> &nbsp;<br> &lt;asp:TemplateField HeaderText=&quot;RecordId&quot; SortExpression=&quot;RecordId&quot; Visible=&quot;False&quot;&gt;<br> <br> &nbsp;<br> &lt;ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;RecordId&quot;) %&gt;'&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;/ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;lblAcctLegalID&quot; runat=&quot;server&quot; Text='&lt;%# Eval(&quot;RecordId&quot;) %&gt;'&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;/EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;/asp:TemplateField&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:TemplateField HeaderText=&quot;BankName&quot; InsertVisible=&quot;False&quot; SortExpression=&quot;BankNumber&quot; Visible=&quot;False&quot;&gt;<br> <br> &nbsp;<br> &lt;ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;Label2&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;BankNumber&quot;) %&gt;'&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;/ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;lblAcctID&quot; runat=&quot;server&quot; Text='&lt;%# Eval(&quot;BankNumber&quot;) %&gt;'&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;/EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;/asp:TemplateField&gt;<br> <br> &nbsp;<br> &lt;asp:TemplateField HeaderText=&quot;BankNum&quot; SortExpression=&quot;BankNum&quot;&gt;<br> <br> &nbsp;<br> &lt;EditItemTemplate&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &nbsp;<br> &lt;asp:TextBox ID=&quot;TxtEditBankNum&quot; runat=&quot;server&quot; Enabled=&quot;False&quot; style=&quot;font-size: small&quot; Text='&lt;%# Bind(&quot;BankNumber&quot;) %&gt;' Width=&quot;100px&quot; Wrap=&quot;False&quot;&gt;&lt;/asp:TextBox&gt;<br> <br> &nbsp;<br> &lt;/EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;HeaderTemplate &gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;lblAddBankNum&quot; runat=&quot;server&quot; style=&quot;font-size: small; font-weight: 700; text-align: left;&quot; Text=&quot;Bank&quot;&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;br /&gt;<br> <br> &nbsp;<br> &nbsp;<br> &lt;asp:DropDownList ID=&quot;dropAddBankNum&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot; CssClass=&quot;style4&quot; DataSourceID=&quot;bankcodes&quot; DataTextField=&quot;BankDirectory&quot; DataValueField=&quot;Bank_Number&quot; onselectedindexchanged=&quot;gridview2_SelectedIndexChanged&quot;<br> <br> &nbsp;<br> <br> &nbsp;<br> SelectedValue='&lt;%# Bind(&quot;Bank_Number&quot;) %&gt;' style=&quot;font-size: x-small&quot; TabIndex=&quot;2&quot; AppendDataBoundItems=&quot;true&quot; Width=&quot;100px&quot; Height=&quot;23px&quot;&gt;<br> <br> &nbsp;<br> &lt;/asp:DropDownList&gt;<br> <br> &nbsp;<br> &lt;/HeaderTemplate&gt;<br> <br> &nbsp;<br> &lt;ItemTemplate&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;lblBankNum&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;BankNumber&quot;) %&gt;' Width=&quot;100px&quot;&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;/ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;HeaderStyle HorizontalAlign=&quot;Left&quot; /&gt;<br> <br> &nbsp;<br> &lt;/asp:TemplateField&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:TemplateField HeaderText=&quot;NoteAccountNumber&quot; SortExpression=&quot;NoteAccountNumber&quot;&gt;<br> <br> &nbsp;<br> &lt;ItemTemplate&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;lblAcctNoteNum&quot; runat=&quot;server&quot; Height=&quot;17px&quot; Text='&lt;%# Bind(&quot;NoteAccountNumber&quot;) %&gt;' Width=&quot;150px&quot;&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;/ItemTemplate&gt;<br> <br> &nbsp;<br> &lt;EditItemTemplate&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:TextBox ID=&quot;txtEditAcctNumber&quot; runat=&quot;server&quot; Enabled=&quot;False&quot; Text='&lt;%# Bind(&quot;NoteAccountNumber&quot;) %&gt;' Width=&quot;150px&quot; Wrap=&quot;False&quot;&gt;&lt;/asp:TextBox&gt;<br> <br> &nbsp;<br> &lt;/EditItemTemplate&gt;<br> <br> &nbsp;<br> &lt;HeaderTemplate&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:Label ID=&quot;lblAddAcctNum&quot; runat=&quot;server&quot; style=&quot;font-size: small; font-weight: 700; text-align: left;&quot; Text=&quot;Account Number&quot;&gt;&lt;/asp:Label&gt;<br> <br> &nbsp;<br> &lt;br /&gt;<br> <br> &nbsp;<br> <br> &nbsp;<br> &lt;asp:DropDownList ID=&quot;dropAddAcctNumber&quot; runat=&quot;server&quot; CssClass=&quot;style4&quot; DataSourceID=&quot;Riskfactordaily&quot; DataTextField=&quot;Balanceinfo&quot; OnDataBound =&quot;DropAddacctnum_databound&quot;<br> <br> &nbsp;<br> <br> &nbsp;<br> DataValueField=&quot;NoteAccountNumber&quot; TabIndex=&quot;3&quot; Width=&quot;400px&quot; AppendDataBoundItems=&quot;true&quot; style=&quot;font-size: x-small&quot;<br> <br> &nbsp;<br> Height=&quot;23px&quot;&gt;<br> <br> &nbsp;<br> &lt;/asp:DropDownList&gt;<br> <br> &nbsp;<br> &lt;/HeaderTemplate&gt;<br> <br> &nbsp;<br> &lt;HeaderStyle HorizontalAlign=&quot;Left&quot; /&gt;<br> <br> &nbsp;<br> &lt;/asp:TemplateField&gt;<br> <br> &nbsp;<br> &lt;/Columns&gt;<br> <br> &nbsp;<br> &lt;EditRowStyle BackColor=&quot;#999999&quot; /&gt;<br> <br> &nbsp;<br> &lt;FooterStyle BackColor=&quot;#5D7B9D&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;<br> <br> &nbsp;<br> &lt;HeaderStyle BackColor=&quot;#5D7B9D&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;<br> <br> &nbsp;<br> &lt;PagerStyle BackColor=&quot;#284775&quot; ForeColor=&quot;White&quot; HorizontalAlign=&quot;Center&quot; /&gt;<br> <br> &nbsp;<br> &lt;RowStyle BackColor=&quot;#F7F6F3&quot; ForeColor=&quot;#333333&quot; /&gt;<br> <br> &nbsp;<br> &lt;SelectedRowStyle BackColor=&quot;#E2DED6&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;#333333&quot; /&gt;<br> <br> &nbsp;<br> &lt;SortedAscendingCellStyle BackColor=&quot;#E9E7E2&quot; /&gt;<br> <br> &nbsp;<br> &lt;SortedAscendingHeaderStyle BackColor=&quot;#506C8C&quot; /&gt;<br> <br> &nbsp;<br> &lt;SortedDescendingCellStyle BackColor=&quot;#FFFDF8&quot; /&gt;<br> <br> &nbsp;<br> &lt;SortedDescendingHeaderStyle BackColor=&quot;#6F8DAE&quot; /&gt;<br> <br> &nbsp;<br> &lt;/asp:GridView&gt;</p> 2010-06-27T22:32:48-04:003947042http://forums.asp.net/p/1572822/3947042.aspx/1?Re+GridView+SelectRe: GridView Select <p>Hi again ...</p> <p>Why it doesn work?!! Are you sure you 're working on ASP.NET 3.5?<br> </p> <p>about the handler automatically added whenever you clicked the GridView control.<br> </p> 2010-06-27T23:15:20-04:003947128http://forums.asp.net/p/1572822/3947128.aspx/1?Re+GridView+SelectRe: GridView Select <p>Have you got any errors here? And you maybe post some issues of your problem or debugging information for us through images or words...</p> <p>:)&nbsp;</p> 2010-06-28T01:42:46-04:00