Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need to remove a column being displayed in the datagrid.

Posted on 2008-06-25
2
Medium Priority
?
223 Views
Last Modified: 2013-12-16
If you look at the image attached with the added in new list datagrid

I would first like to remove the GRADE_CODE_DTL_ID
and then rename GRADE_NAME to Grade Name
and then rename STRGHT_PRICE_AMT to Straight Price Amount
============================================================
System.Data.DataSet DataSetDelete = new System.Data.DataSet();
            System.Data.DataSet DataSetChange = new System.Data.DataSet();
            System.Data.DataSet DataSetAdded = new System.Data.DataSet();
            string Status = null;
            InitialPriceReporting.InitialPriceReportingServiceWS.InitialPriceReportingService WS = new InitialPriceReporting.InitialPriceReportingServiceWS.InitialPriceReportingService();

            DataSetAdded = WS.ComparePriceListAdded(previousID, dr["PRICE_LIST_HDR_ID"].ToString(), ref Status);

          AddedDataGridView.DataSource = DataSetAdded.Tables[0];

I call a webservice to return a dataset called DataSetAdded. How can I modify the names added in the datasetadded.



0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
burakiewicz earned 2000 total points
ID: 21868021
DataSetAdded.Tables[0].Columns.Remove("GRADE_CODE_DTL_ID ");
DataSetAdded.Tables[0].Columns["GRADE_NAME"].ColumnName = "Grade Name";
DataSetAdded.Tables[0].Columns["STRGHT_PRICE_AMT"].ColumnName = "Straight Price Amount";
0
 

Author Comment

by:mathieu_cupryk
ID: 21868412
smart guy!!!

Thanks.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question