Version

Search Results

Defining DataSet Schema and Generating Test Data (Part 3 of 4)

Defining DataSet Schema and Generating Test Data (Part 3 of 4) This topic continues from Generating the XSD Schema (Part 2 of 4). Create DataSet Schema At this point we have created the two fundamental elements in our schema, Customers and Orders. Now we need to specify that the CustID entity in the Customers elem...

Defining Layouts

Defining Layouts This section guides you through the different layouts and views with which you can display data in a WinGrid control. Depending on the scenario any of the layouts can be chosen. Creating, Saving, and Loading a Layout Limit Band Indentation Control the Placement of Headers Card view Row Layouts Cre...

Determining the Location of a Specific Cell

Determining the Location of a Specific Cell There may be times when you would like to know which cell the user has clicked on. You can obtain the Cell object that is located at any specified point on the grid, such as the position returned by the mouse-related events. This topic will familiarize you with the Eleme...

Determining the Number of Child Bands

Determining the Number of Child Bands Sometimes when you write code to traverse the WinGrid™, it is necessary to know the number of child bands of a particular band. The WinGrid control provides this information through the ChildBands property of the Band object. To determine the number of child bands: Before you ...

Determining Which Band the User Clicked

Determining Which Band the User Clicked Background When working with the WinGrid™ control, there are times when the developer will need to be able to determine the Band from a mouse X and Y position. This is accomplished by retrieving a reference to the UIElement object from the mouse position, then from this UIEl...

Determining Which Cell the User Clicked

Determining Which Cell the User Clicked Background Many projects using the WinGrid™ control for navigation need to be able to determine which cell the user clicked on without the cell being selected or becoming active. This is generally required on the MouseUp event. Questions How do I know which cell was clicked ...

Determining Which Column the User Clicked

Determining Which Column the User Clicked Background There are times when a program needs to identify the Column associated with a mouse click. WinGrid™ provides this capability through the use of the .DisplayLayout.UIElement.ElementFromPoint method and the .GetContext method of the UIElement. Questions How do I d...

Determining Which Row the User Clicked

Determining Which Row the User Clicked Background WinGrid™ exposes many different User Interface Elements (UIElement) to the user. When working with the mouse the developer may need to be able to determine the row on which the user clicked, or the row under the current mouse position. Properties and methods of the...

Disabling a Band or the Entire WinGrid

Disabling a Band or the Entire WinGrid Since the WinGrid™ control’s inception, end users have been using WinGrid to manipulate data in every way, shape, and form. However, what if you, as the developer, don’t want the end user to modify certain data. What if the end user requires a way to keep certain data intact ...

Disabling a WinGrid Cell

Disabling a WinGrid Cell You may need to disable a single Cell in the WinGrid™ control, or even a group of cells scattered throughout the grid. Each cell exposes an Activation property, which you can set to the Activation enumeration. Through this property, you can implement an activation behavior for any cell in ...