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
Goran Bibic
480
2.9k
200.7k
Conect manualy from MS sql to datagrid?
Apr 19 2018 1:12 PM
I need to conect line 8 and statement from line 13 to end
private
void
trenutne_zalihe2()
{
using
(SqlConnection openCon =
new
SqlConnection(cs))
{
string saveStaff =
"Select id as 'id', roba as 'Naziv artikla', kolicina as 'Kolicina' from mp_faktura_roba"
;
using
(SqlDataAdapter querySaveStaff =
new
SqlDataAdapter(saveStaff, cs))
{
DataTable dt =
new
DataTable();
querySaveStaff.Fill(dt);
trenutnazalihadataGridView.DataSource = dt;
trenutnazalihadataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
trenutnazalihadataGridView.Columns[
"id"
].Visible =
false
;
trenutnazalihadataGridView.Columns[
"redni_broj"
].FillWeight = 100;
trenutnazalihadataGridView.Columns[
"naziv_artikla"
].FillWeight = 571;
trenutnazalihadataGridView.Update();
trenutnazalihadataGridView.Refresh();
}
}
}
Reply
Answers (
3
)
chnage encoding in bulk
Update Command not working