Simple Data Grid Question

Hello all you talented VB people! I'm new to VB.Net and have 2 quick data grid questions...

I have a data grid on my form. I am displaying only specific columns from my sql table on my data grid. All the columns in my data grid currently display data exactly as they appear in my table.

Question 1:
One of these columns displays values like 1, 2, 3... 10. How do I format this column so that it will display the characters: A, B, C... J instead? In other words, I want my grid to convert the value 1 to A, 2 to B, and 3 to C.

Question 2:
What is the syntax to add a new column to the data grid, that does not "bind" to a column in my sql table. This column is in the grid just to display some information in the grid, but does not correspond to a column in my sql table.

Thanks to all who respond. Much appreciated!
Sally


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories