Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with data binding for grid
Message
 
To
26/06/2008 17:54:29
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01326791
Message ID:
01327088
Views:
11
Hi Tim,

I am working on Windows forms (using VS 2005) using the mmDataGridView. When I click on the tag menu, I just get mmDataGridView tasks. It has check boxes for enabling the user to add, edit, delete and reorder columns and the options to add or edit columns. The only other things are an option to dock the grid in the parent and to choose a data source. I am using MM 2.2, because I thought the 3.5 was just for VS 2008. That may be why I have different choices. Can I use the newer version with VS 2005?

Thanks.

>Hi Linda,
>
>I have a couple of clarifications to ask. Are you working on Windows forms or Web forms?
>Did you put a GridView or a DataGrid on your form?
>Are these actually mmDataGrid or mmGridView controls rather than standard controls? I assume since you mentioned setting the business object it was mm.
>The checkbox for "AutoGenerateFields" will be on the GridView or mmGridView control. It is not on the DataGrid control. However there is still a tag menu called Property builder where you can select the columns page and turn off "Create columns automatically at run time" checkbox and pick the columns based on Bound Column for instance. But are you in web or windows?
>
>Tim
>
>>Thanks. I don't have the check box. I guess that's a 2008 enhancement. It has been a while since I worked on .NET and I have just started back on it recently. Either the mechanics of changing the fields changed or I have just forgotten what I figured out a year ago.
>>
>>I did find the code to put in the form code to turn off the autogenerate columns option in the JumpStart instructions. Am I correct in assuming that if I assign a field name as the DataPropertyName, it will become a bound column? The place to click on bound columns was disabled.
>>Linda
>>
>>>Hi Linda,
>>>
>>>>I have a form with a DataGridView on it. I am able to select the business object to bind to the table but I am unable to edit the columns. When I pull up the edit columns option, none of the columns are displayed. I have done this successfully many times before and can't figure out what the problem is this time. Any ideas? Thanks.
>>>
>>>When you select the gridview object in design mode there is a smart tag in the upper right corner of th grid. Clicking on this will give you a pop up menu where you can edit columns. There will be none there but the bottom corner of this form has a checkbox that says something like AutoGenerate Columns. You can uncheck this, and then add the columns you want typically as Bound columns. Check out the jump start section where Kevin walks through Enhancing the grids.
>>>
>>>Hope that helps.
>>>Tim
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform