15,911,715 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Naveen Kumar Malli (Top 23 by date)
Naveen Kumar Malli
30-Jul-14 7:20am
View
Thanks..It's working..Nirav....
Naveen Kumar Malli
23-Jul-14 8:25am
View
s...i have cleared this i had installed again Antlr3.Runtime.dll from ManageNuGet Packages...and i added that dll to my references in my project Solution Explorer....befoe doing this i need to remove already existing Antlr3.Runtime.dll in my bin folder.....and finally after all doing this once restart and i build my solution....
Naveen Kumar Malli
22-Jul-14 10:57am
View
Thanks..
actually it's a reference problem of a dll with my project....
Naveen Kumar Malli
18-Jul-14 11:04am
View
ya but i haven't achieved 100% requirement...
Naveen Kumar Malli
18-Jul-14 9:01am
View
ya..that's not suitable for my requirement ..so i again re improved in a better way and i posted it..?
Naveen Kumar Malli
16-Jul-14 9:22am
View
please watch my requirement.....
Naveen Kumar Malli
15-Jul-14 3:59am
View
S...its working ThanQ..so much sasolanki...
Naveen Kumar Malli
17-Jun-14 1:08am
View
Still my images are not binding to my gridview...could u please re check again ...i had updated my question....DamithSL..
Naveen Kumar Malli
16-Jun-14 4:41am
View
Thank you for suggestion, every thing is fine now....i have again created a new table of same fields..it's working now ..but the thing is i had followed the same steps as before..but it is working now...why it wasn't earlier....
Naveen Kumar Malli
16-Jun-14 4:41am
View
Thank you for suggestion, every thing is fine now....i have again created a new table of same fields..it's working now ..but the thing is i had followed the same steps as before..but it is working now...why it wasn't earlier....
Naveen Kumar Malli
16-Jun-14 4:41am
View
Thank you for suggestion, every thing is fine now....i have again created a new table of same fields..it's working now ..but the thing is i had followed the same steps as before..but it is working now...why it wasn't earlier....
Naveen Kumar Malli
14-Jun-14 8:47am
View
I placed my code at my question content,, please refer and guide me .........phil.o
Naveen Kumar Malli
14-Jun-14 7:15am
View
Deleted
public void BindDataGrid()
{
string bindQuery = "select * from employee";
_cmd = new SqlCommand();
_cmd.CommandText = bindQuery;
_cmd.Connection = _con;
_con.Open();
_da = new SqlDataAdapter(_cmd);
_ds = new DataSet();
DataGridViewImageColumn dgi = new DataGridViewImageColumn();
dgi.Name = "image";
dgi.HeaderText = "Person_image";
dgi.ImageLayout = DataGridViewImageCellLayout.Zoom;
try
{
dgi.Image = bytearraytoimage((byte[])_ds.Tables["employee"].Rows[1]["image"]);
}
catch (Exception x)
{
MessageBox.Show(x.Message);
}
dataGridView1.Columns.Insert(0,dgi);
_con.Close();
_da.Fill(_ds);
dataGridView1.DataSource = _ds.Tables[0];
}
private Image bytearraytoimage(byte[] b)
{
MemoryStream ms=new MemoryStream(b);
Image img=Image.FromStream(ms);
return img;
}
private void Form1_Load(object sender, EventArgs e)
{
BindDataGrid();
}
Naveen Kumar Malli
14-Jun-14 7:13am
View
public void BindDataGrid()
{
string bindQuery = "select * from employee";
_cmd = new SqlCommand();
_cmd.CommandText = bindQuery;
_cmd.Connection = _con;
_con.Open();
_da = new SqlDataAdapter(_cmd);
_ds = new DataSet();
DataGridViewImageColumn dgi = new DataGridViewImageColumn();
dgi.Name = "image";
dgi.HeaderText = "Person_image";
dgi.ImageLayout = DataGridViewImageCellLayout.Zoom;
try
{
dgi.Image = bytearraytoimage((byte[])_ds.Tables["employee"].Rows[1]["image"]);
}
catch (Exception x)
{
MessageBox.Show(x.Message);
}
dataGridView1.Columns.Insert(0,dgi);
_con.Close();
_da.Fill(_ds);
dataGridView1.DataSource = _ds.Tables[0];
}
private Image bytearraytoimage(byte[] b)
{
MemoryStream ms=new MemoryStream(b);
Image img=Image.FromStream(ms);
return img;
}
private void Form1_Load(object sender, EventArgs e)
{
BindDataGrid();
}
Naveen Kumar Malli
14-Jun-14 7:12am
View
Deleted
public void BindDataGrid()
{
string bindQuery = "select * from employee";
_cmd = new SqlCommand();
_cmd.CommandText = bindQuery;
_cmd.Connection = _con;
_con.Open();
_da = new SqlDataAdapter(_cmd);
_ds = new DataSet();
DataGridViewImageColumn dgi = new DataGridViewImageColumn();
dgi.Name = "image";
dgi.HeaderText = "Person_image";
dgi.ImageLayout = DataGridViewImageCellLayout.Zoom;
try
{
dgi.Image = bytearraytoimage((byte[])_ds.Tables["employee"].Rows[1]["image"]);
}
catch (Exception x)
{
MessageBox.Show(x.Message);
}
dataGridView1.Columns.Insert(0,dgi);
_con.Close();
_da.Fill(_ds);
dataGridView1.DataSource = _ds.Tables[0];
}
private Image bytearraytoimage(byte[] b)
{
MemoryStream ms=new MemoryStream(b);
Image img=Image.FromStream(ms);
return img;
}
private void Form1_Load(object sender, EventArgs e)
{
BindDataGrid();
}
Naveen Kumar Malli
14-Jun-14 6:43am
View
Bsollutely sorry it's varbinary(max)......uhfff
Naveen Kumar Malli
12-Jun-14 0:22am
View
ThankYou very much for providing this link ..it is so thank full to you
Naveen Kumar Malli
11-Jun-14 23:55pm
View
actually i do binding code to datagridview...but the thing is images are not binding to my datagridview...the image column was showing an break image symbol(default image symbol)...how to bind my varbinary(max) to datagridview.....i would be so thank full it i have an answer for this...
Naveen Kumar Malli
8-Jun-14 6:22am
View
how to make an assembly to expose out of the code through COM interface
Naveen Kumar Malli
8-Mar-14 4:33am
View
actual query is select 'some string' + 1
Naveen Kumar Malli
26-Feb-14 6:01am
View
F5--->Go(that's it)..
Naveen Kumar Malli
23-Jan-14 1:59am
View
Ohh...Thankyou.. actually i didn't guess of comparison value with maximumvalue....
and that's the fine code...it's working..Karthik...
Have a nice day...
Naveen Kumar Malli
23-Jan-14 1:57am
View
That's fine code and thank you very much Beyer...it's working...too
Have a nice day
Show More