|
-
Sep 19th, 2008, 02:13 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Asp.Net 2005 + GridView + RowIndex + Sourabh Das
Dear All,
I have a GridView:
-----------
<asp:GridView ID="grdAstCls" runat="server" >
<Columns>
<asp:TemplateField HeaderText="..." SortExpression="Select" >
<ItemTemplate>
<asp:Button ID="btnSel" OnClick="btnSel_Click" runat="server" Text="..." />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
------------
Protected Sub btnSel_Click(ByVal sender As Object, ByVal e As EventArgs)
"This code is in CodeBehind file. Here i want to write the code of assigning the selected rows 2nd column data in the textbox txtast."
End Sub
-----------
There will be other columns with this column in begining for each row in the grid. On click of the the button, I want to assign the 2nd column data of that row in a text box(txtast). How do i do that?
Regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|