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
Shyja Abraham
NA
69
0
datagridview values
Apr 2 2011 12:39 AM
hai,
i have a form with a several textboxes and datagridview. when i enter the name of the student the names are displayed in the datagridview. but i have a problem that ,the values in datagridview are doubled each time enter the textboxes. plz help.
i use this code .
private
void
textBox14_TextChanged(
object
sender,
EventArgs
e)
{
namegrid.Visible =
true
;
cmd.CommandText =
"select staffname from staff where staffname like '"
+ textBox14.Text +
"%'"
;
da.SelectCommand = cmd;
da.Fill(ds,
"item"
);
DataTable
dt = ds.Tables[
"item"
];
namegrid.DataSource = dt;
}
Reply
Answers (
6
)
How drop a database after connecting new one
How to capture the video from web camera using c# ?