borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (How to check datagridviewbuttoncolumn(text property)) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : insert buttoncolumn(runtime) to last column (datagridview)
Poster Message
aekpong
Level: Whizz Kid

Registered: 27-12-2005
Posts: 16

icon insert buttoncolumn(runtime) to last column (datagridview)

Dear all

How to insert  buttoncolumn to last column of datagridview

this code

dim objbtncols as datagridviewbuttoncolumn

with objbtncols
    .headertext = "Action"
    .usecolumntextforbuttonvalue= true
    .text = "Delete"
end with

datagridview1.columns.add(objbtncols)  //This case it insert at first column. How to insert at last column

with datagridview1
    .readonly = true
    .datasource = ds.table("cusdata")
    .refresh
end with

dataset have 5 field. I need to insert buttoncolumn at last column(column=6)

Thanks for help and all advice

____________________________
TK

19-02-2008 at 07:19 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB.Net : insert buttoncolumn(runtime) to last column (datagridview)
Next Topic (How to check datagridviewbuttoncolumn(text property)) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder