i fill my datatable with DataReader and i tie up that table to my datagridview as dataSource..i want to add one image column but when i added it my first column cant be seen how i will add it as last column in my datagridview??

Recommended Answers

All 2 Replies

I'm not sure which method you have used - Bounded Column or Unbounded column? Show us your code please.

I'm not sure which method you have used - Bounded Column or Unbounded column? Show us your code please.

thanks for your reply..i tried something like that

DataGridViewImageColumn imgColumn = new DataGridViewImageColumn();
imgColumn.Name = "Resim";
imgColumn.HeaderText = "Düzenle";
dataGridView1.Columns.Insert(4, imgColumn);

and i can add by that way..but my new problem is i cant choose an icon for it..and the text net to the icon..i tried like that but no result

imgColumn.Image=Image.FromFile("D:\\diğer\\icon\\Icon\\Void Smilies");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.