General information
Title:
Example of using DataGrid
Is there an example of using the DataGrid in .Net?
I have a WinForm that I created in C# and placed a DataGrid in the form. The DataGrid works but every field from my table is displayed in the form.
I tried filling in the properties from the TableStyles collection and placed the DB object name in the MappingName. I then go to the GridColumnStyles collection and add 2 fields, etc...
But when I run this form, every field displays in the grid. Not just the 2 I defined.
What am I missing? Is there a C# example of making the DataGrid work?
Thanks,
Jerryt
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only