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
Dong Lam Trien
833
986
145.7k
How the find and assignment field with DataView type ?
May 22 2018 10:12 PM
I get the employee list from SQL Server problem with fields:
ID: id e
mployee
Employee
: name e
mployee
after filter the kernel list dv.RowFilter = "
set condition unique 1 recoder
" at the command if (dv.Count == 1) at this assignment id and the kernel name is not correct the unique file filter on which it assign the first file in the family list. yourself want to get sample sample already been filter by dv.RowFilter, main syntax in command if (dv.Count == 1) {// chars this again as what ?)
[code]
string tmpSQL = "string to get the list employee";
DataTable dt = Conection.FillDatatable(tmpSQL);
DataView dv = new DataView(dt);
// Search fast Employee
dv.RowFilter = "set condition unique 1 recoder";
if (dv.Count == 1)
{
//error at this buffer is not get unique sample template
txtIdEmployee.Text = dv.Table.Rows[0]["ID"].ToString();
txtNameEmployee.Text = dv.Table.Rows[0]["Employee"].ToString();
}
else
{
//...
}
[/code]
Reply
Answers (
0
)
how to split string using table
in sql query right index is not working