Solved

Need to remove a column being displayed in the datagrid.

Posted on 2008-06-25
2
221 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 500 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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

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!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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