Page 3 of 8 FirstFirst 123456 ... LastLast
Results 21 to 30 of 79
  1. #21

    Default

    ive tried using datagrid inside datagrid bt somehow i cud'nt do it...
    ds is wat i did inside the cell of the datagrid is another datagrid, bt its not possible i think..
    is it possible?

    ive tried using tables without using datagrid, somehow it works for me. dont know if its the best way...
    my prob now is how will i make it expand/hide?

  2. #22

    Default

    @bryanarzaga


    unsaon na pagbuhat anang datagrid with a datagrid?

    nindot pod na nga idea... i can use it for my thesis....


    thanks daan...

  3. #23

    Default

    Quote Originally Posted by ingkiang View Post
    ive tried using datagrid inside datagrid bt somehow i cud'nt do it...
    ds is wat i did inside the cell of the datagrid is another datagrid, bt its not possible i think..
    is it possible?

    ive tried using tables without using datagrid, somehow it works for me. dont know if its the best way...
    my prob now is how will i make it expand/hide?
    the example above is already a working of the asp.net version of nesting a datagrid within a datagrid,

    but i think what you want is a vb.net app datagrid to be nested in a datagrid, sakto ba?

    i dont have .net installed pero ill try nya

  4. #24

    Default

    @bryanarzaga

    ok... thanks bro.... mas nindot man gud mas daghan ta mahibaw-an..

    dako na kaayo na ug tabang.....

  5. #25

    Default

    Quote Originally Posted by bryanarzaga View Post
    the example above is already a working of the asp.net version of nesting a datagrid within a datagrid,

    but i think what you want is a vb.net app datagrid to be nested in a datagrid, sakto ba?

    i dont have .net installed pero ill try nya
    yup...sak2 jud bro...

  6. #26

    Default

    Quote Originally Posted by ingkiang View Post
    yup...sak2 jud bro...
    ill display the source here when im done

  7. #27

    Default

    Quote Originally Posted by bryanarzaga View Post
    ill display the source here when im done
    thanks bro...i reli ned it badly...

  8. #28

    Default

    Quote Originally Posted by bryanarzaga View Post
    where will you display a message? ganahan raka ini hilabot sa mga objects sulod sa combo box mu initiate sya ug event?
    @brayan,....
    sa button na column if ma click...mag pa msgbox lng "na pislsit nimo ang button1"
    sa combo box pag na change ang selected ...mag pa msg box lng "mao ni bagong na select + value"
    sa column image pud...sakto na square size...den if taas man gud hieght sa image..ang button hieght ma stretch pud..problema
    ......


    in anah ra bai...khibaw ka anah bai? pls tabangi tawn ko,..gusto lo lng ko makita sa implementation sa whole code...noob pa ko bai.

    sample:
    naa kay datagridview...den naay mga columns

    Col1, Col2, Col3
    Row 1 column 1 = combo box(item 1,item2,item3) -->on change display a message
    Row 1 column 2 = button--->on click display a message
    Row 1 column 3 = textbox -->on click of the button dispay value of textbox

    Row 2 column 1 = combo box(item 1,item2,item3) -->on change display a message
    Row 2 column 2 = button--->on click display a message
    Row 2 column 3 = textbox -->on click of the button dispay value of textbox
    ....... so on and so fort

    tabang mga masters...sa vb.net

  9. #29

    Default

    mao ni akong code brayan...na himo bro


    pag pa display pa lng..wala pa event


    HTML Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim dt As New DataTable
            Dim bs As New BindingSource
            Dim btnx As New Button
    
            'btnx.Name = "btn1"
            'btnx.Text = "ahahah"
    
            'dt.Columns.Add("id", GetType(Button))
    
            'dt.Rows.Add(btnx)
            'bs.DataSource = dt
    
            'DataGridView2.DataSource = bs
    
    
    
            Dim column1 As New DataGridViewTextBoxColumn
            Dim column2 As New DataGridViewComboBoxColumn
            Dim column3 As New DataGridViewButtonColumn
            Dim column4 As New DataGridViewImageColumn
    
            With column1
                .Name = "ID"
                .HeaderText = "Text Box"
    
            End With
            With column2
                .Name = "Name"
                .HeaderText = "Combo Box"
    
            End With
            With column3
                .Name = "but"
                .HeaderText = "Button"
    
            End With
            With column4
                .Name = "image"
                .HeaderText = "Image"
                .AutoSizeMode = DataGridViewAutoSizeColumnMode.None
    
            End With
    
            DataGridView2.Columns.Add(column1)
            DataGridView2.Columns.Add(column2)
            DataGridView2.Columns.Add(column3)
            DataGridView2.Columns.Add(column4)
    
            Dim comboCell As DataGridViewComboBoxCell
            Dim btnCell As DataGridViewButtonCell
            Dim imgCell As DataGridViewImageCell
    
            DataGridView2.Rows.Add()
            DataGridView2.Item(0, 0).Value = "Row0"
            comboCell = DataGridView2.Item(1, 0)
            comboCell.Items.Add("Item1")
            comboCell.Items.Add("Item2")
    
            btnCell = DataGridView2.Item(2, 0)
            btnCell.Value = "Add to cart"
            'btnCell. = 200
            'btnCell.Size = New Size(200, 50)
    
            Dim bmp As New Bitmap("c:\\me.jpg")
            
    
    
    
    
            '' bmp.Height = 100
    
            imgCell = DataGridView2.Item(3, 0)
            imgCell.Value = bmp
            imgCell.ReadOnly = False
            'imgCell.Size = Size(100, 100)
            'imgCell.Size.Height = 100
            'imgCell()
            'imgCell.Size = New Size(100, 200)
            DataGridView2.Rows.Add()
            DataGridView2.Item(0, 1).Value = "Row1"
            comboCell = DataGridView2.Item(1, 1)
            comboCell.Items.Add("Item3")
            comboCell.Items.Add("Item4")
            btnCell = DataGridView2.Item(2, 1)
            btnCell.Value = "sdfsadf"
            imgCell = DataGridView2.Item(3, 1)
            imgCell.Value = bmp
    
            DataGridView2.Rows.Add()
            DataGridView2.Item(0, 2).Value = "Row2"
            comboCell = DataGridView2.Item(1, 2)
            comboCell.Items.Add("Item5")
            comboCell.Items.Add("Item6")
            btnCell = DataGridView2.Item(2, 2)
            btnCell.Value = "sdfsadf"
            imgCell = DataGridView2.Item(3, 2)
            imgCell.Value = bmp
    
        End Sub


    mao ni ang screenshots bai


    problema nako...ang size sa image..kay if akong padak-an..ang button ma stretch pud...ang akong gusto ma achieve na ma fixed ang width & hieght sa button ug sa ubang objects...din makita ang whole image sa image column. possible ba na bai?.....tabang po pls..

  10. #30

    Default

    for now ako conclusion wala pako answer na ma embedd nimu ang DB grid sa VB.net wala but link to open another grid ako na gama ra, pero fully embedd under sa Vb.net wala pako sorry guys,

    @pittbull dapat nimu e compensate ang imu objects ana,

    pag web nalang mu oi lol, para isa ra ka lugar ang application, dri galabi nako g himu web na tanan, daun ang scheduling ra ang apps.

Page 3 of 8 FirstFirst 123456 ... LastLast

Similar Threads

 
  1. how to populate datagrid in vb.net?
    By mcapon in forum Programming
    Replies: 0
    Last Post: 01-07-2011, 12:41 AM
  2. Problem with VB.Net SQL Server
    By boloygabs in forum Programming
    Replies: 11
    Last Post: 09-22-2010, 02:03 AM
  3. Replies: 6
    Last Post: 06-26-2006, 10:33 AM
  4. Replies: 10
    Last Post: 12-20-2005, 08:53 AM
  5. Replies: 0
    Last Post: 12-05-2005, 05:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top