Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Datagridviewtextcolumn in C#.NET windows app urgent
September 29, 2008
i have designed a gridview in which we added a column which header name is deduct and its rows is datagrieviewButtoncolumn and second one is header name is employee id and its rows is datagridviewtextcolumn and so on of textcontrol.
when we bind data with coding
this code not bind with the designed gridview column, it bind at the last column with database header name.
>>>i want to bind the data with my own header name and data from database.<<<
it work when we do it manually.
Posted Date: September 29, 2008 Points: 5
Why dont you give the aliases of the colum name in inside the SQL Query. Like this
select User_Name as Name, Usr_ID as UserID from tableName;
Posted Date: July 18, 2011 Points: 20
I think , Mistake in your Query....
Try this way,
Select Username,password from tbl_login.
If you use this query .you get only Two columns in your grid view.But In your first Column is Button So you modify your query like this...
Select '' as [your Col name],Username,password from tbl_login.
Regards, Lakshmi Naraayanan.S
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
Search value in DataGridView in C#.NET windows app
Urgent datagridview edit updated rows C#.NET
Button control into DataGridView in C#.NET Windows App
DateTimePicker in DataGridView in C#.NET windows app
Latest Forum Questions From The Same Category
database is read-only.
editor for visual basic with c#.net
How to get phone number in .Net windows application?
while accessing method from proxy giving an unauthorized access
How to make search between two dates accept null not obligatory search proplem
Create a Windows form application using Excel as database..
Recieve Data From Serial Com Port C# In One Line And Convert To integer
display parent data and child data as a row group in one datagridview using c# winform
enter key event in windows app c#.net
windows appplication c#.net
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