Results 1 to 2 of 2

Thread: Properties !

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2007
    Posts
    192

    Properties !

    In vb6 ce i have :
    Code:
    If GridCtrl1.Rows > 0 Then
            GridCtrl1.Row = GridCtrl1.Rows - 1
            GridCtrl1.Col = 1
    -----------------------------------
    I vb 2005 ce I resolved that on this way :

    Code:
    Dim myCell As New Windows.Forms.DataGridCell()myCell.ColumnNumber = 1
    If myCell.RowNumber > 0 Then
            myCell.RowNumber = myCell.RowNumber - 1
            myCell.ColumnNumber = 1
    ==============================
    I have same problem with similar properties:
    In vb6 ce :
    [CODE]GridCtrl1.RemoveItem 0
    GridCtrl1.AddItem rsProdaja.Fields("broj_rac").Value _
    & vbTab & rsProdaja.Fields("naziv_dob").Value _
    & vbTab & Mid(rsProdaja.Fields("datum").Value, 1, 5)[CODE]

    I tried with this way but a cant find right properties :

    Code:
    Dim dr As System.Data.SqlServerCe.SqlCeDataReader = naredba.ExecuteReader
           Dim dr As System.Data.SqlServerCe.SqlCeDataReader
          If dr.Read Then
           Do While dr.Read
    DataGrid1. (dr("broj_rac").ToString _
        & vbTab & dr("naziv_dob").ToString _
        & vbTab & Mid(dr("datum").ToString, 1, 5))
         ''rsProdaja.movenext()
         DataGrid1.Item(1, 5) = dr("broj_rac")
    I cant find properties that would match in this code:

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Properties !

    Hi,
    look at putting a datasource on the screen, and then binding the grid to it - far easier, and that is what most of the samples are based on.

    This may help
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width