Hi everyone
i want to determine when user pressed buttonX1 or selected a row from dataGridViewX1 then run its command.
i don't know i should look at what...
i don't know, i should use what property or...
private void btnUpdatUser_Click(object sender, EventArgs e)
{
if (?????????????????? )
{
}
else
{
MessageBox.Show("error");
}
}
3:27:28 PM
Loading
elham deljooeiPosted Jan 13, 2013, 9:24 AM
i have some Textbox and a dataGridViewX1. i want of user click buttonX1_Search or a row from dataGridViewX1 then i get id from and i can do update with id.
I want to use of property or event or method from buttonX1_Search or dataGridViewX1 when distinguish selected. Indeed i want to determine when user selected this buttonX1_Search or one row from dataGridViewX1 then run its command. my purpose get Id from table with dsitinguish selected buttonX1 or dataGridViewX1
private void btnUpdatUser_Click(object sender, EventArgs e)
{
if (if buttonX1_Search or dataGridViewX1 selected fro example equal true )
{
}
else
{
MessageBox.Show("error");
}
}
Nilesh AvhadPosted Jan 13, 2013, 7:54 AM