Hi,
e.Layout.RowScrollRegions[0].Scroll(
.Bottom) is not scrolling to bottom.
I am increasing the hieght of few rows in paint method that could be the reason it is not scrolling to bottom.
Is there any way make it scroll to bottom.
Thanks
I have to show two different fileds data in a single cell and the first filed data fornt color and second field data color should be different. So I am using paint method to increase the cell width and add another line using e.Graphics.DrawString . Is any other way I can do that so I will not use paint method.
You are probably correct. Changing the height of the row in the Paint method is probably not a good idea. At the very least, it's inefficient.
If you want all the rows in the grid to be the same height, anyway, then why are you looping through the rows?Or did you just use the same height for example purposes?
Either way, looping through every row in the grid inside the paint event it extremely inefficient. Try using the InitializeRow event instead and just set the height on one row at a time.
Please try this.
using
System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;
System.Collections;
namespace
WindowsFormsApplication2
{
Form
Form1()
InitializeComponent();
>();
i = 0 ;i<= 50; i++)
()
Name =
,
Number =
Address =
"Addresssssssssssssssssssssssssss"
};
custList.Add(cust);
}
.ultraGrid1.DataSource = custList;
e)
e.Layout.RowScrollRegions[0].Scroll(Infragistics.Win.UltraWinGrid.
.Bottom);
ultraGrid1.Rows)
row.Height = 44;
Customer
; }