Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web form question: binding mmTextBox to a DataRow
Message
De
01/11/2007 13:08:22
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01265734
Message ID:
01265770
Vues:
9
Anatoliy,

I don't have your answer but I did ask a very similar question yesterday in this same forum. I will be watching for replies on this as well.
Tim

>A web form contains three controls: mmGridView, mmTextBox and mmButton. The GridView is binded to mm business object oOrderDetails.
>
>How the following could be achieved:
>On the grid's SelectedIndexChanged the textbox is binded to the selected DataRow. So the Text property displays the current value. And the modification of the Text property results in the modification of the selected DataRow.
>
>Public oOrderDetails As MyBusinessObject
>
>...
>    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
>        oOrderDetails = CType(Me.RegisterBizObj(New MyBusinessObject), MyBusinessObject)
>
>        If IsPostBack Then
>        Else
>            oOrderDetails.GetOrderDetailByOrderNo(Session("SelectedOrderNo"))
>            Session("ds_SelectedOrder_detail") = oObject.DataSet
>        End If
>    End Sub
>
>    Protected Sub gridDetails_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gridDetails.SelectedIndexChanged
>
>        Dim identity As Integer, ds As DataSet, row As DataRow
>        identity = CType(Me.gridDetails.SelectedRow.Cells(0).Text, Integer)
>	row = ds.Tables(0).Rows.Find(identity)
>
>	'???
>    End Sub
>
>    Protected Sub MmButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MmButton1.Click
>	'???
>    End Sub
>
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform