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
Vivek Joy
NA
137
26.9k
datatable
Oct 9 2015 2:54 AM
HI everyone
I need to upload datatable values in grid without using datasource.
I need to know how can we find the count value of datatable
My code is
SqlConnection con = new SqlConnection("server=QB_DT_2\\sqlexpress;database=QbAppDb1;user id=sa;password=admin123");
SqlCommand cmd = new SqlCommand("Select * from QbGroups where Groupname = 'primary'", con);
DataTable dt = new DataTable();
SqlDataReader rdr = null;
rdr = cmd.ExecuteReader();
for (int i = 0; i < dt.Rows.Count; i++)
{
RadGrid.Rows.Add();
RadGrid.Rows[i].Cells[0].Value = rdr["QBGUID"].ToString();
RadGrid.Rows[i].Cells[1].Value = rdr["GroupName"].ToString();
}
Reply
Answers (
7
)
Regular Expressions
how i can changes names of same checkboxes at different val