Nov 23, 2010, 10:32 AM
Grid Panel
Hi,
I have added column model in grid panel from code behind.
Now I want to validate each textField as decimal or int.
Also total row should not be editable and color of that row should be different.
Please refer the attachement.
I have added column model in grid panel from code behind.
foreach (DataColumn dc in dtData.Columns)
{
if (count > 3)
{
Column co = new Column();
co.Width = Unit.Pixel(75);
co.DataIndex = dc.ColumnName;
co.Header = dc.ColumnName;
TextField c = new TextField();
c.ID = count.ToString();
co.Editor.Add(c);
this.GridPanel1.ColumnModel.Columns.Add(co);
}
count++;
}
I am adding Textfield as above.Now I want to validate each textField as decimal or int.
Also total row should not be editable and color of that row should be different.
Please refer the attachement.