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
yokzu
NA
306
0
Cant reach the datagridview1 control
Jan 9 2012 2:08 AM
Hi,
Im facing a weird problem. I am just adding a DataGridView control to my program's interface. Then I am passing the Form1.cs then wanna write some codes with this control but VS can not see this control. I mean can not identify. All codes below ;
------------------------------------
private void button1_Click(object sender, EventArgs e)
{
string query = "Data Source=1.1.1.1;Initial Catalog=mdb;User Id=user;Password=qweasd;";
SqlConnection conn = new SqlConnection(query);
conn.Open();
DataTable data_table = new DataTable();
SqlDataAdapter sql_adapter = new SqlDataAdapter("SELECT * FROM table", conn);
sql_adapter.Fill(data_table);
datagridview1.
Fill ...... --> I cant fill dataadapter to gridview..
------------------------------------
Reply
Answers (
5
)
How to set crystal report load path remotly
Fetch values from gridview in dropdownlist using c#