-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: GreatScorpion75
Message 5 in Discussion


Hi 
Yogesh & Akshit,
 
Thanks 
for ur reply. 
I 
tried using both the methods but of no luck. I am making use of DataTable 
for binding the grid. My code is as follows:
.
.
DataTable dt = new 
DataTable("Naveen");
dt.Columns.Add("MessageId");
dt.Columns.Add("From");
dt.Columns.Add("To");
dt.Columns.Add("Subject");
dt.Columns.Add("Body");
.
.
//Create a new Row
DataRow dr = dt.NewRow();
.
.
dr["From"] 
= mH.from;
dr["To"] = mH.to;
dr["Subject"] = 
mH.subject;
dr["Body"] = mH.body;
dr["MessageId"] = 
i.ToString();
 
//Add 
the row to the table
dt.Rows.Add(dr);
.
.
//Bind the data table to the grid
dgMessages.DataSource = 
dt;
dgMessages.DataBind();
 
At 
this point when the datagrid dgMessages is shown to the user, I want 
to hide the Body Column. Can any of you suggest me as 
to how to do this?
 
Thanks 
& Regards
Naveen
 
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to