Hi,
How can i get the selected row at the row databound event in Gridview control ?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 22, 2011, 10:46 PM EDT
//Write Inside your row databound event
If e.Row.RowType = DataControlRowType.DataRow Then
Dim email As String = e.Row.Cells(3).Text; // Get Your Row Text and Cell(3) is your Column index
End If
------------------------------------------------------------
If this helps you, then mark as "Correct Answer"
Thank You
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 22, 2011, 9:40 PM EDT
Nethra R SRank #6,347 · 269 reputationPosted Sep 22, 2011, 10:29 PM EDT
Is my question not clear?
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 22, 2011, 10:33 PM EDT
Nethra R SRank #6,347 · 269 reputationPosted Sep 23, 2011, 1:13 AM EDT
Do you understand what it means by selected row? Row will be entire only