Datagrid Column Width

J

Jeffrey Tan[MSFT]

Hi Cadel,

If you can, I suggest you attach it in the further reply, this can benifit
the entire community. However, if you failed to attach in the newsgroup,
you can contact me at (e-mail address removed)(remove online.). Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi Cadel,

Thanks for your feedback.

I am not aware "Liddiard, Michael [[email protected]]" is you.

Sorry, the access mdb file has been filtered by our internal firewall.
However, I have received your Winform project. I do not know why you must
include the database file in the project. Can you get rid of the database
dependency and just create the datasource manually, which I think is not a
hard task.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi Cadel,

Thanks for your feedback.

Yes, I have received your project. Your current problem in the project is
the tablestyle setting does not work, yes?

After reviewing your project, I found that this is caused by the in-correct
setting on the DataGridTableStyle.MappingName property. In your Form.Load
code, you set this property like this:

DataGridTableStyle dgts = new DataGridTableStyle();
dgts.MappingName = "LicPrivilges";

However, we should set this property to DataTable.TableName. In your
scenario, DataTable.TableName is an empty string.(you can verify this by
debugger or using a statement to print out the result). After modifying
this to DataTable.TableName, it works fine now:
DataGridTableStyle dgts = new DataGridTableStyle();
dgts.MappingName = dt.TableName;

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top