Please help adding columns to the existing Dataset table

S

settyv

Hi,

I want to add new column to the Datatable which is returned from
Business layer.Will the below code work?

Case BCase=new Case();
BCase.SearchEvents(sp,out ds);
DataColumn c1 = new DataColumn("View PDF",
Type.GetType("System.string"));
ds.Tables["Events"].Columns.Add(c1);
grdTentativeResults.DataSource=ds;
grdTentativeResults.DataBind ();

Please let me know how can i do that.

Thanks,
Vishnu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top