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
Nagendra Panyam
NA
190
17.7k
i had to generate loop for inserting rows and columns
Jan 29 2019 9:16 PM
i had tried fallowing
DataTable _datatable=new DataTable("Empinfo");
public DataTable DataTable
{
get { return _datatable; }
set { _datatable = value; }
}
public void CreateNewRow()
{
this._datatable = new DataTable("Table");
this._datatable.Columns.Add("Name");
this._datatable.Columns.Add("Id");
this._datatable.Columns.Add("Age");
this._datatable.Columns.Add("Title");
this._datatable.Rows.Add(txtName.Text, txtId.Text, txtAge.Text, txtTitle.Text);
this.gridtest.DataContext = this;
}
private void Submitbtn_Click(object sender, RoutedEventArgs e)
{
CreateNewRow();
Reply
Answers (
11
)
get specific value from Datareader
How to Install ASP.NET CORE 2.0 for VS 2015