?
Solved

Need to remove a column being displayed in the datagrid.

Posted on 2008-06-25
2
Medium Priority
?
222 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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