Click here to Skip to main content
15,900,506 members

Comments by Member 12663465 (Top 3 by date)

Member 12663465 31-Aug-18 7:34am View    
Thank u sir
sir can u pls help out with second
pattern accept only within range 30 to 300
Member 12663465 31-Aug-18 7:32am View    
this one is not working properly
([3-9][0-9])|([1-2][0-9][0-9])|(300)
help out
Member 12663465 2-Oct-17 10:59am View    
my friend i am new to C# language learning from YouTube each and every step
so if you have the working code send me .... i like u r solution but i am another method
let me share with u the code
dataGridView1_CellContentClick


private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
SqlConnection con = new SqlConnection(@"Data Source=.\sqlexpress;Initial Catalog=imagestore; Integrated Security=True;");
SqlDataAdapter sda = new SqlDataAdapter("select * from emp",con);
DataTable dt = new DataTable();
sda.Fill(dt);
dataGridView1.DataSource = dt;
byte[] binaryimage = (byte[])dt.Rows[0][0];
Bitmap image;
using (MemoryStream stream = new MemoryStream(binaryimage))
{
image = new Bitmap(stream);
}
pictureBox1.Image = image;
}


in this method tell how to showup the image... only one image is displayed row[0][0]
but onclick of any cell the picture in that datagridview should be displayed
i hve to traverse through loop or foreach loop for that this is the main issue i am at