|
Forums » .NET » .NET »
|
Datagrid in vb.net windows application |
Posted Date: 23 Apr 2010 Posted By:: nirav Member Level: Gold Member Rank: 297 Points: 1
Responses:
4
|
Hi, I have datagrid which is bind dynamically. Now i have to display header text for each column either data in grid or not.How to do...?
|
Responses
|
#497980 Author: Asheej T K Member Level: Diamond Member Rank: 2 Date: 24/Apr/2010 Rating:  Points: 2 | Refer below link,
http://www.c-sharpcorner.com/UploadFile/sd_patel/DataGridHeaderText11232005050843AM/DataGridHeaderText.aspx
Regards, Asheej T K Microsoft MVP[ASP.NET/IIS] DotNetSpider MVM
Dotnet Galaxy
| #497987 Author: shinurag Member Level: Silver Member Rank: 3372 Date: 24/Apr/2010 Rating:   Points: 3 | hii.. nirav
here is the sample windows application...
check this one and contact me if still on trouble...
DotNetSpiderCS.zip | #497998 Author: nirav Member Level: Gold Member Rank: 297 Date: 24/Apr/2010 Rating:  Points: 2 | Hi, Shinurag
Thanks for replying with attachment
But, still i am facing problem..
Actually i have datagrid in vb.net window application. Where datagrid is bind dynamically.
And in it i taken first column as hidden ID (ContactId in database).Because my requirement is when user click on that particular column's row then that data is displayed on another form for updating.. After on that second form he/she clicks on update data reflects on that datagrid... So, i taken first column as hidden id(not visible on datagrid) with contactID (unique for each record) to fetch that particular record ..
Comparison with your application and my requirement, where in your application datagrid, first column where asterisk sign is there, is my hidden id column with contact id(not visible to user,Only used for click to open another window for updating).
Now i want only text on that first column first row as "Click here to update" ....How to do that?
Or instead of that i can add new column in grid as edit button ....But,,How to do that also....Where data bind in grid is dynamically..
Please response......
Thanks a lot.....
|
|
| Post Reply |
|
|
|
 | | This thread is locked for new responses. Please post your comments and questions as a separate thread. If required, refer to the URL of this page in your new post. |
|
|
|
|
 Follow us on Twitter: https://twitter.com/dotnetspider
|
|