-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Ravikumarcbe
Message 3 in Discussion
Hi Vinu, 1. You can make the column visible and invisible by
datagrid1.datasouce = DataSet.Tables("tablename")
Dim dgcCode As New DataGridTextBoxColumn()
Dim dgcName As New DataGridTextBoxColumn()
Dim dgcts As New DataGridTableStyle()
With dgcCode
MappingName = "Code" 'This is the fieldname taken thru query
HeaderText = "Code" 'Column header
Width = 0 'column is invisible
End With
With dgcName
MappingName = "Name" 'This is the fieldname taken thru query
HeaderText = "Name" 'Column header
Width = 100 'column is invisible
End With
With dgcts
MappingName = "tablename" 'dataset table name
End With
dgcts.GridColumnStyles.AddRange(New DataGridColumnStyle() {dgcCode, dgcName})
datagrid1.tablestyle.clear()
datagrid1.tablestyle.add(dgcts)
2. You can get the rownumber by datagrid.currentcell..rownumber
Rgds,
Ravi
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]