Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Methods in a WinForm
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00720482
Message ID:
00720540
Views:
13
The DataGrid object is different then the Grid object in VFP. You use different properties of the DataGrid to determine the information you want. Here is some online help info that pertains to your question. There are lots of online help to show you how to implement these methods and properties.

To validate data, use the underlying objects that represent data and their events. For example, if the data comes from a DataTable in a DataSet, use the ColumnChanging and RowChanging events.

To determine which cell is selected, use the CurrentCell property. Change the value of any cell by using the Item property, which can take either the row and column indexes of the cell, or a single DataGridCell. Monitor the CurrentCellChanged event to detect when the user selects another cell.

To determine which part of the control the user clicked, use the HitTest method in the MouseDown event. The HitTest method returns a DataGrid.HitTestInfo object, which contains the row and column of a clicked area.

>I have a grid control that is working ok in term of data presentation. I am unable to figure out how to validate the diferent entries when the user click on the boolean type columns. I was reading the book .Net for Visual Foxpro programmer and see that they only make reference to one method "validation". Is that the only method that you have to use to validate all the columns in a grid? or you can emulate the click for individual columns like in VFP.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform