Re: Grid from TexBoxes is Slow
Brady Kelly <[email protected]> Mon, 5 Nov 2007 12:54:30 +0200
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
I have requirements the disqualify the DataGridView. I need to have interleaved rows with different column layouts, and I need e.g. three column header rows, also all with different column layouts. If you can offer any advice on how to achieve this with a DataGridView I would concider you a hero and set about trying to do it post haste. > -----Original Message----- > From: Discussion forum for developers using Windows Forms to build apps > and controls [mailto:[email protected]] On Behalf Of > Adrian Martin > Sent: 05 November 2007 12:49 PM > To: [email protected] > Subject: Re: [DOTNET-WINFORMS] Grid from TexBoxes is Slow > > I guess the DataGridViews only look like rows and rows of textboxes, > when the Grid has an active cell it dynamically creates the correct > control( eg TextBox ) and postions it on top and infront of the cell. > > I don't have a grid handy at the minute but WinSpy++ should confirm > this..... > > Surely the shortcut to speeding up your grid is to replace it with a > DataViewGrid! > > > > > -----Original Message----- > From: Discussion forum for developers using Windows Forms to build apps > and controls [mailto:[email protected]] On Behalf Of > Brady Kelly > Sent: 5-November-2007 09:32 > To: [email protected] > Subject: Grid from TexBoxes is Slow > > I've build a prototype custom grid using rows of TextBox controls, but > it's > quite slow. Now if I use a DataGridView, with all my columns as > textbox > columns, I imagine all the cells are textboxes as well, and that grid > has > huge amounts more functionality than mine. So, I believe I can greatly > improve the speed of my grid, still using the textbox approach, but I > haven't a clue how. Some advice would be great. > > > > A question that keeps cropping up in my thoughts is, do I continue > delegating the drawing of borders to the individual textboxes, or do I > draw > the grid independently, and place borderless textboxes in the cells. > Is > there even much of a difference? > > > Johnston Press plc Registered in Scotland no. SC015382 > Registered Office: 53 Manor Place, Edinburgh, EH3 7EG > > Opinions expressed in this email are those of the writer and not the > company. E-mail traffic is monitored within Johnston Press and > messages may be viewed. This e-mail and any files with it are solely > for the use of the addressee(s). If you are not the intended > recipient, you have received this e-mail in error. Please delete it or > return it to the sender or notify us by email at > [email protected]