Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Grid Postback on row selection
posted

Hi,

I need to postback webgrid on row select and need ID of selected row, how would I do this

 please help

Thanks in advance

 

Parents
No Data
Reply
  • 45
    posted

    Hi,

    First step configuration UltraWebGrid, Click in "Quick Desing" (shows the Quick Desing dialog), then click in "Feature Picker" later select desired element features right "Row Selectors" select option "Show".

     Second step in the Event Click:

    Private Sub uwgrdOC_Click(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.ClickEventArgs) Handles uwgrdOC.Click

    Dim strVariable As String

    strVariable = Me.uwgrdOC.Rows(e.Row.Index).Cells.FromKey("ID").Text.ToString

    strVariable = Me.uwgrdOC.Rows(e.Row.Index).Cells(0).Text.ToString

    End Sub

     

    I hope it's useful to you

Children