We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

grid control

i would like to know if it's possible to modify the column headers name in the grid control tool. we aim to reach the display that is shown in the attached file.
more specifically how can we get rid the header's names A,B etc and replace them with other titles Floor, Room, Description....
best regards,

New Folder.zip

1 Reply

PB Philip Bishop September 5, 2007 01:06 PM UTC

To change the headers do the following

gc1(0, 1).Text = "Floor"
gc1(0, 2).Text = "Room"
gc1(0, 3).Text = "Description"

The 0 refers to row 0 and the 1,2,3 refer to col number. Then just decide how many cols you will need and set ColCount property in the interface for the grid to that number.

Loader.
Live Chat Icon For mobile
Up arrow icon