-
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:
-
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