Hi Friends
i need a help. in my gridview i have
i have a dropdownlist with tables. if i select the table, based on the columns the gridview displays.
one table contains 9 columns and other contains 40 columns... for example....see the below.
Insert/Edit RoleUID RoleID Role Desc ....etc columns
here RoleId, role are mandatory fields... i am making those two with "*" red color. but if i click on the "INSERT" then i need to get a alert msg that the roleid is mandatory.. you should enter in interger value, and if "role" is null then same like "Role is mandatory... plz enter character value"
i dont have any template fields in the gridview. i make autogeneratecolumns=true in my grid.
its great if anyone helps me ...
i need validation for the dynamic gridview cell... where there is no columns fixed...
I used the below code send by AZIM... for INSERT
for
(
int
j = 3; j < cellCount; j++)
{
TextBox textBox =
new
TextBox();
textBox.ID =
"txtDynamicText"
+ j.ToString();
textBox.Attributes.Add(
"runat"
,
"server"
);
textBox.CssClass =
"Color"
;
this
.GridView1.Rows[rowsCount - 1].Cells[j].Controls.Add(textBox);
}
Thanks in advance....
Cheers.
LeelaReddy