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
fugio huynh
NA
51
16.9k
how to select row from datagridview when cell is empty
Jul 21 2013 6:28 AM
Hi there !
how to select row from datagridview when column have cells is empty
I tried couple of this but nothing worked
Please help on this
private void selectrow()
{
int i;
for( i=0 ;i<dataGridView1 .Rows .Count -1;i++)
{
string row = dataGridView1.Rows[i].Cells["Name"].Value.ToString();
if (row =="")
{
sqlconn.Open();
string sqlquery = "select * from tbl... where id='" + dataGridView1.Rows[i].Cells["id"].Value.ToString() + "'";
SqlCommand sqlcmd = new SqlCommand(sqlquery, sqlconn);
SqlDataAdapter sqlda = new SqlDataAdapter(sqlcmd);
DataTable dt = new DataTable();
sqlda.Fill(dt);
dataGridView1.DataSource = dt;
sqlconn.Close();
}
}
}
Reply
Answers (
1
)
select multiple objects in a video using emgu.cv librareis
Month and Year Calendar Control opening- click on textbox