Need Help >>>>>>>>>

Need Help >>>>>>>>>

Post by Gary » Sat, 03 Apr 2004 04:36:45


Nobody answered my previous post from last night. I
would really like to get this solved. Is is puzzling.

I want to change the layout of columns in a datagrid. I
want to change the heading and the width of columns. In
the Load Event on the form, I have the following code:

Dim tsNotes As New DataGridTableStyle
tsNotes.MappingName = "Notes"

Dim cstDate As New DataGridTextBoxColumn
cstDate.MappingName = "NoteDate"
cstDate.HeaderText = "Note Date"
cstDate.Width = 1650

Dim cstStartTime As New DataGridTextBoxColumn
cstStartTime.MappingName = "StartTime"
cstStartTime.HeaderText = "Start Time"
cstStartTime.Width = 1550

Dim cstEndTime As New DataGridTextBoxColumn
cstEndTime.MappingName = "EndTime"
cstEndTime.HeaderText = "End Time"
cstEndTime.Width = 1550

tsNotes.GridColumnStyles.Add(cstDate)
tsNotes.GridColumnStyles.Add(cstStartTime)
tsNotes.GridColumnStyles.Add(cstEndTime)

Me.DG_Notes.TableStyles.Add(tsNotes)

But when I run this code, I can see no columns at all.
If I change themapping name from "Notes" to "PNotes",
these styles do not get applied. If I leave it
at "Notes" I can't see any columns. What am I doing
wrong?

Any help would be appreciated.

Thanks in advance,

Gary
 
 
 

1. >>>>>>>>>>>>>>>>>>>>>>>>>>>>test - no reply - ignore

2. >>>>>>>>>>>>Index.dat

On my computer there is a file called index.dat which is
uses by IE so when i try to delete it it says that you
can't. I know that i can delete it if i go into DOS but
if i do delete it what would happen?

Yhe reason i want to delete is that i read somewhere that
i has all your browsing history in it. Could you also
tell me what the file is used for. if that is not what it
is used for.

3. forward without >>>>>>>>>>>

4. PLEASE HELP>>>>>>>>>>>>>>>>>>

5. >>>>>>>>>>>>>>>>>>>

6. ==========================>>>>>>>>>>>>>>>>>>> AS/400 controller PERLE 494 for sale

7. vertical alignment>>>>>>>>>>

8. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

9. MS Mail for Office 2003>>>>>>>>>

10. >>>>>>>>>>>>>>>>>100% FREE GUIDE ON ANY KIND OF LOANS

11. >>>>>>>>Start Receiving Unlimited Payments TODAY >>>>>>>>

12. >>>>#### >>>> Make BILLIONS Online Without Investment >>>#####>>>>>

13. >>>>>>>>Start Receiving Unlimited Payments TODAY >>>>>>>>

14. [ idiots - please killfile ] >>>>>>>> A Face Full Of Carpet!