TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
B M Suchitra
NA
507
417.5k
ColumnName does not allow nulls
Aug 24 2011 6:25 AM
Hi,
Plzz look at the code below:
if (menuType == "city")
{
DataSet DSLoadMaster = obj.LoadDataSet("Select * from city_master");
// Here we'll add a blank row to the returned DataTable
DataTable DT = DSLoadMaster.Tables[0];
DataRow DR = DT.NewRow();
DT.Rows.InsertAt(DR,0);
//Creating the first row of GridView to be Editable
GVDetails.EditIndex = 0;
GVDetails.DataSource = DT;
GVDetails.DataBind();
}
i am trying to insert a new row in gridview which has dynamically created bound fields. I get an error cityname doe not allow null values.
.
Reply
Answers (
2
)
To show image in pdf with toolbar
How to clear the clipboard in windows 7 using ASP.Net or Javascript