Search
  Search
DEVELOP WEB APPLICATIONS WITH THE BEST AJAX FRAMEWORK.
CREATE LINE OF BUSINESS SILVERLIGHT APPLICATIONS IN NO TIME.
EVERY THING YOU NEED TO START DEVELOPING WITH VISUAL WEBGUI.
SEE VISUAL WEBGUI SHOW CASES FROM AROUND THE WORLD.
ALL THE RESOURCES YOU NEED TO START BUILDING VISUAL WEBGUI APPLICATIONS TODAY.
SHARE AND FIND VISUAL WEBGUI RESOURCES.
TALK WITH OTHER VISUAL WEBGUI DEVELOPERS.
 

 

SAP has chosen Visual WebGui for strategic web application, Mr. Saar of SAP explains why in an interview with with Jeremy Geelan at AJAX World.

Click on the video image to watch

SAP chosen VWG for strategic web application

 
  Forum  General Visual ...  How do I...?  Scroll bars for forms.
Previous Previous
 
Next Next
New Post 12/7/2008 1:46 AM
  ori.cohen
1152 posts
1st Level Poster


Re: Datagridview row height change. 
Hello Abhijit and Palli!

I tried to change the height of the DataGridViewRow objected of a DataGridView and found no problem.
The following is the code I used for testing over VWG v6.2.0 and v6.2.1:

private void Form1_Load(object sender, EventArgs e)
{
    mobjDataGridView.DataSource = Data;
}

private DataTable Data
{
    get
    {
        if (mobjData == null || mobjData.Rows.Count == 0)
        {
            mobjData = new DataTable();
            mobjData.Columns.Add("ID", typeof(Int32));
            mobjData.Columns.Add("Name", typeof(String));

            for (short srtIndex = 0; srtIndex < 22; srtIndex++)
            {
                mobjData.Rows.Add(srtIndex, String.Format("Row {0}", srtIndex));
            }
        }
        return mobjData;
    }
}

private void button1_Click(object sender, EventArgs e)
{
    foreach (DataGridViewRow objRow in mobjDataGridView.Rows)
    {
        objRow.Height += 8;
    }
    mobjDataGridView.Update();
}

private DataTable mobjData;


Regards,

Ori Cohen
The Visual WebGui team
 
New Post 12/7/2008 1:46 AM
  palli
963 posts
1st Level Poster


Re: Datagridview row height change. 


Hi Ori !

This would probably be called not seeing the forest for individual trees :-)

Anyway, this works allright. However, how do you make sure new rows added will be added with the new height value?

I tried setting the DGV.RowTemplate.Height and then adding rows, but that does not seem to have any affect.

Palli
 
New Post 12/7/2008 1:46 AM
  ori.cohen
1152 posts
1st Level Poster


Re: Datagridview row height change. 
Hello Palli!

Thanks for correcting me!

I opened a new issue on the subject with a sample application of both VWG and WinForms. You can view it here and track our progress.

Regards,

Ori Cohen
The Visual WebGui team
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Scroll bars for forms.

Visual Studop Partners

Copyright © 2005-2008 Visual WebGui®   Terms Of Use  Privacy Statement
Visual WebGui is copyright 2005-2008 by Gizmox