DOTNET Datagrid

G

G R

Using Datagrid control in DOTNET. If the columns do not fill up the
grid, there is background space showing. What is the method for showing
columns that do not fill the grid to fill the grid exactly? I would
like it to be resolution dependent.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi Geoffrey,

You will need to calculate the free space to the right and either re-size
all columns proportionally, or just make the rightmost column wider to fill
up the rest of the space. This, of course, requires that you create all
DataGridColumnStyles manually.
 

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