Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Add datacoloum in c#.net Windows Application
March 18, 2010
I have datagrid that is binded with database & I have to add One more column so how should i proceed?
Syed Shakeer Hussain
Posted Date: March 18, 2010 Points: 5
write the follwoing code in Load Event.
specify your column names in
which columns you want in 'DataGrid'
SqlCommand cmd=new SqlCommand("select
SqlDataAdapter da=new SqlDataAdapter(cmd);
DataSet ds=new DataSet();
To post reply
Related Questions Related Questions
How to create a control in windows application also how could add in the Tool box itself
Windows application Form Focus in C#.NET
Difference Between console application and windows application?
upload image file in windows application
Can we use Web form controls in window form of Windows application
How to call Calculator Control in C# Windows Application..
Paging in DataGridView in windows application
How to open one .chm help file in c# windows application menu bar....
How to close my C# + Windows application safely...
How to lock the database programetically using c# + windows application
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend