[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:
http://minuscool.pwp.blueyonder.co.uk/pic.bmp
knxrb
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.
Re: [VB 2005] DatagridView Columns And Textfiles
Thanks, I'll have a look :)