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
ahmed elbarbary
NA
1.6k
278.4k
How to generate labels from datatable based on records exist
Feb 2 2019 7:04 PM
Problem
how to get data from data table and repeat it according to number of rows ?
my datatable name is GetChecked
What i need is to generate label for MemberCode based on number of records .
Suppose datatable have 4 records from MemberCode 1001 to 1004 then it will be as below
window form showdata
MemberCode : 1001 Membercode : 1002
MemberCode : 1003 Membercode : 1004
so that how to make design above by csharp windows form visual studio 2015 ?
code
public
DataTable GetChecked()
{
DataTable table =
new
DataTable();
table.Columns.Add(
"MemberCode"
,
typeof
(
string
));
for
(
int
i = 0; i < dtDisplayDataPayment.Rows.Count; i++)
{
DataRow newRow = table.NewRow();
newRow[
"MemberCode"
] = Utilities.ObjectConverter.ConvertToString(dtDisplayDataPayment.Rows[i][
"MemberCode"
]);
table.Rows.Add(newRow);
}
return
table;
}
Reply
Answers (
2
)
Use index.cshtml or index.html
How to add Image On Crystal Report depend on database Field