Protected Sub ASPxButton1_Click(sender As Object, e As EventArgs) Handles ASPxButton1.Click Dim oRowVal As List(Of Object) Dim oVal As Object oRowVal = ASPxGridView1.GetSelectedFieldValues({"No_"}) oVal = oRowVal(0) Label1.Text = oVal.ToString End Sub
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <br /> <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="ASPxButton" Theme="BlackGlass" Width="150px"> </dx:ASPxButton> <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" EnableTheming="True" Theme="BlackGlass"> <Columns> <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0"> <ClearFilterButton Visible="True"> </ClearFilterButton> </dx:GridViewCommandColumn> <dx:GridViewDataTextColumn Caption="GP" FieldName="No_" VisibleIndex="1"> </dx:GridViewDataTextColumn> <dx:GridViewDataTextColumn Caption="Description" FieldName="Descripción Grupo" VisibleIndex="2"> </dx:GridViewDataTextColumn> </Columns> <SettingsBehavior AllowSelectSingleRowOnly="True" /> <Settings ShowFilterRow="True" ShowGroupPanel="True" /> </dx:ASPxGridView>
Dim fieldNames As String() = New String() {"<column name="">", "Column name>"} Dim columnValues As Object = grdMemberslist.GetRowValues(grdMemberslist.FocusedRowIndex, fieldNames)</column>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)