|
-
Aug 16th, 2007, 09:52 AM
#1
Thread Starter
Hyperactive Member
[VB 2005] DatagridView Columns And Textfiles
I need some way of loading textfiles into columns in a datagridview.
Example:
Column1 = all text in textfile1
Column2 = all text in textfile2
etc, etc..
I have 7 columns and seven textfiles. Each textfile would have a maximum of 30 lines.
I would want it displayed as normal in a datagridview:

knxrb
-
Aug 17th, 2007, 02:42 AM
#2
Re: [VB 2005] DatagridView Columns And Textfiles
You could inherit the DataGridViewTextBoxColumn and DataGridViewTextBoxCell classes and add a Multiline property. You would then propagate that property value to the TextBox control hosted in the cell. Alternatively you could handle the grid's EditingControlShowing event and set the Multiline property of the TextBox directly. You should read about the DataGridViewCell.EditingControl property to get some background.
-
Aug 17th, 2007, 03:36 AM
#3
Thread Starter
Hyperactive Member
Re: [VB 2005] DatagridView Columns And Textfiles
Thanks, I'll have a look
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
|