2
Reply

Urgent Help in making DATAGRID text buttons !!!

Asaf ok

Asaf ok

Apr 24 2010 2:45 AM
2.1k
Hello everyone,
I'm working on a Web page on ASP.NET 3.5 and want to display data from GRIDVIEW when there is only one column
Each line is a kind of  menu link to displayed data on another GRIDVIEW in the page.
the GRIDVIEW information should be used as a menu I can not make the records function as buttons so the second gridview will change data when you click on one.
The code I use is:
 <asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource2" 
AutoGenerateColumns="False" DataKeyNames="id"
OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
ShowHeader="False">
<Columns>

<asp:BoundField DataField="name" HeaderText="name" SortExpression="name">
<ItemStyle CssClass="catalog_menu" />
</asp:BoundField>
</Columns>
</asp:GridView>


It's really urgent for me I'll be happy to receive any help!

Answers (2)