Jump to content

vb.net best practice?


Recommended Posts

I've written a vb.net winforms app which takes result sets from sql server, displays them in a datagrid and dumps them to excel.

As a quick'n'dirty hack, I set the display properties by using the data type, so floating point columns are displayed with no decimal places, decimal columns 2 d.p.

I'd like to replace this hack with something more flexible, so I was wondering if there was a normal way to transfer this kind of metadata.

I could use part of the column name and then strip it off, but that seems like another dirty hack, or I could use another table or a set of output parameters.

Does anyone have any advice?

Thanks

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...