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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ColWidthsChanging

Thread ID:

Created:

Updated:

Platform:

Replies:

13233 Apr 23,2004 11:10 AM UTC Apr 23,2004 02:16 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 23, 2004 11:10 AM UTC

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?

Administrator [Syncfusion]
Replied On 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).

Administrator [Syncfusion]
Replied On 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). > >

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;