TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bhavleen Singh
NA
203
5k
Getting Cell value from Gridview
May 28 2019 11:39 PM
I've used template field approach
<asp:TemplateField HeaderText="TReDS Status">
<ItemTemplate>
<asp:Label ID="lblTredsStatus" runat="server" Text='<%#Bind("STATUS")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
i want to fetch its value from c#(beckend)
I've already tried
{
GridViewRow row = grdPaymentrelease.Rows(e.RowIndex);
value = ((TextBox)row.FindControl("STATUS")).Text.ToString().Trim();
}
on rowdatabound function with e as System.Web.UI.WebControls.GridViewRowEventArgs
giving error - RowIndex is not a member of e
instead I also tried e As GridViewUpdateEventArgs
its asking to make new function
Help!
Reply
Answers (
4
)
how to automatical update datagrid after insert in c#winform
How to maximize a windows forms on specific panel