i have a radgrid - i want to access the cell values and put to a textbox. when i click on the row (and fire the ItemCommand event), the cell values are
please help. thanks.
code behind:
TXTMETHOD.TEXT IS   i cannot get the values of the cell text's. the grid displays fine with the correct entries but i cannot get to the cell text to move to a textbox.
please help. thanks.
<telerik:RadGrid ID="rgShip" runat="server" AutoGenerateColumns="false" Skin="Windows7" AllowMultiRowSelection="false" OnNeedDataSource="LoadMethods"> <MasterTableView DataKeyNames="ship_meth_id" > <Columns> <telerik:GridButtonColumn DataTextField="ship_meth_desc" CommandName="Select" ItemStyle-HorizontalAlign="Left" HeaderText="Shipping Method" UniqueName="shipmethdesc"></telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid>code behind:
Protected Sub LoadMethods() Try Dim ds As dataset ds = DBSvc.GetDataset, "sp_Ship_Meth_SEL") Dim dv As DataView dv = ds.Tables(0).DefaultView dv.Sort = "ship_meth_desc" rgShip.DataSource = dv Protected Sub rgShip_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgShip.ItemCommand Try If e.CommandName = "Select" Then Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem) txtMethod.Text = dataItem("shipmethdesc").Text TXTMETHOD.TEXT IS &NBSP; i cannot get the values of the cell text's. the grid displays fine with the correct entries but i cannot get to the cell text to move to a textbox.