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

ColWidthsChanging

I am trying to use some existing code on a new project I am working on. The old project used the regular grid and the new one is using the databoundgrid version. The old one used the ColWidthsChanging event to keep trak of the column sizes. The databound grid doesn''t support this. Is there a document that describes what other differences there are between the datbound grid and the regular grid?

3 Replies

AD Administrator Syncfusion Team April 23, 2004 12:42 PM UTC

There is no document that lists changes between GridControl and GridDataBoundgrid. If you don''t see an event (like ColWidthsChanging) in GridDataBoundGrid, then look at the this.gridDataBoundGrid1.Model object. It is likely you will find the event there (there is a grid.Model.ColsWidthsChanging event).


AD Administrator Syncfusion Team April 23, 2004 01:08 PM UTC

Good I will use that. When I do a properities/events on the databound grid on the form it doesn''t list the event for the databound one but does for the regular one. Is this supposed to be? >There is no document that lists changes between GridControl and GridDataBoundgrid. > >If you don''t see an event (like ColWidthsChanging) in GridDataBoundGrid, then look at the this.gridDataBoundGrid1.Model object. It is likely you will find the event there (there is a grid.Model.ColsWidthsChanging event). > >


AD Administrator Syncfusion Team April 23, 2004 02:16 PM UTC

If you are using C#, if you type ''this.gridDataBoundGrid.Model.'' , intellisense should autocomplete ColWidthsChanging as you type. If you are using VB, then you have to use the AddHandler call to subscribe to such events. AddHandler Me.GridDataBoundGrid.Model.ColWidthsChanging, addressof MyEventHandler I think you will have to force the Model to appear after the Me.GridDataBoundGrid in this line, but after you do so, pressing . should show the events that are found in the Model. If you search for AddHandler using FindInFiles in the grid''s Samples folder, you will see lots of sample snippets.

Loader.
Live Chat Icon For mobile
Up arrow icon