Updated: 16/05/2004; 22:46:17.
Hannes 'Shorty' Decorte's Radio Weblog
Learning .Net and the Experiences doing so


dinsdag 16 december 2003

While on course last week I found time to complete a first version of the DataGrid.
Known issues in this version are :

Due to the large number of code lines I will only highlight some of the important parts of the code.

The main idea is starting from the original DataGridTableStyle building an ArrayList with all the possible combinations of DataGridColumn positions and then move between the DataGridTableStyle (us_BuildArrayListOfGridStyles). To accomplish this the custom DataGrid implements a BeforeCellChange event. When the event is raised the Fixed Column Provider checks to see whether or not a fixed DataGridColumn would become (partly) invisible (iI_GridEvents_BeforeCellChange). If so the ArrayList with DataGridTableStyle is searched for the DataGridTableStyle closest to the current which has the DataGridColumn visible. The found DataGridTableStyle is then set as the current DataGridTableStyle of the DataGrid. After that the new current Cell-location is set.

 

I will try to do the following

  • Find a way to allow scrolling with the horizontal ScrollBar.
  • Make the provider as a class that can be "hooked" to any DataGrid.

If anyone wants the full code or has some tips mail me!

Get Code


9:46:09 PM    comment []

© Copyright 2004 Hannes 'Shorty' Decorte.
 
December 2003
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Nov   Jan



Other .Net Bloggers

Bart De Smet
Jan Tielens
Patrick Verbruggen
Patrick Tisseghem
Tom van de Kerkhof's Bloggings
Tom's Corner
Yves Hanoulle

Aggregated Feeds

Belgian .NET Bloggers