datagrid help!

e.Item.Cells[0].Text empty

Page 1 of 1

0 Replies - 1699 Views - Last Post: 12 December 2005 - 06:59 AM Rate Topic: -----

#1 folen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 47
  • Joined: 07-March 02

datagrid help!

Posted 12 December 2005 - 06:59 AM

am trying to make a datagrid from a database.

but i need to show a pic as tooltip (easy)

so i added some code at:
private void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
(the item created event)

my problem begins when i want to use a database that not all the colums r shown in the datagrid (the database has buy sell (the datagrid show only buy)

i want to know which colum i am in, in the datasource (Access) so i can get the pic from the database

but e.Item.Cells[0].Text is empty unliss we r in the header and then it shows the header text
how can i know the text in this colum (the colum am in , in this iteamcreated event)


pleazzzzz help me

i can't find anything

i can add the source but it has some herbrew (there is nothing wrong with the code (but the e.Item.Cells[0].Text ) caz it works on a database withc i use all of it to the datagrid (then i use : int i =e.Item.DataSetIndex and add 1 and i got the colum)

thanks

Attached File(s)



Is This A Good Question/Topic? 0
  • +

Page 1 of 1