|
-
Jan 9th, 2003, 10:23 AM
#1
Thread Starter
Addicted Member
-
Jan 9th, 2003, 12:23 PM
#2
Frenzied Member
Did you fill your dataset in your code?
-
Jan 10th, 2003, 01:37 AM
#3
Thread Starter
Addicted Member
yup! actually even if i didnt fill it - i think it should pear without data and with the one column whic i created doesnt it?
-
Jan 10th, 2003, 04:26 AM
#4
Frenzied Member
First: I dont know why you are using 'res' and cloning the table while you can directly work with the original table.
Second: Provided that you fill your dataset this should definitly work for you.
VB Code:
Private Sub grdConnWayShow()
Dim grdtbstConnnWay As DataGridTableStyle = New DataGridTableStyle()
Dim txtCol As DataGridTextBoxColumn = New DataGridTextBoxColumn()
With txtCol
.MappingName = "conndetails_Code"
.HeaderText = "îñ" '
.Width = 35
.Alignment = HorizontalAlignment.Right '
.ReadOnly = True '
End With '
grdtbstConnnWay.DataGrid = Me.grdCompConnWay
grdtbstConnnWay.GridColumnStyles.Add(txtCol)
grdtbstConnnWay.MappingName = DsCompanies1.T_ConnectionDetails.TableName '****
grdCompConnWay.TableStyles.Add(grdtbstConnnWay)
Me.grdCompConnWay.DataSource = DsCompanies1.T_ConnectionDetails '****
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|