Bit Conversion

  • Thread starter Thread starter ben
  • Start date Start date
B

ben

Hi All,
I have a table in the database with one column of bit datatype...how
can i retrieve its value as yes/no or true/false in my datagrid
column, i realize i need to convert it in the query n pass the
modified datasource to the datagrid, but unsure on how to
proceed...any help will be greatly appreciated.
thanks in advance
Ben
 
I cant remember the exact name of it offhand, but there is an event
that gets fired on each row of a datagrid during binding. Use this to
check the value of the source, and change it to "Y" or "N" or whatever
you want.
 
Thanks Dan...but did anybody have any sample code i cud follow, unable
to find the event so far
thanks in advance
 
<asp:datagrid .... onitemcreated="methodtocall" ... >

In server code...
public void OfferedItemCreated(object Sender, dataGridItemEventArgs e)

take a look at e.item. It should be a collection of table cells that
have just been added to the datagrid.
 
Back
Top