[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

VB.net datagrid ButtonColumn for VB.net windows app

Posted on 2004-10-25
1
Medium Priority
?
943 Views
Last Modified: 2008-02-26
I am working with a datagrid and I am trying to add a button column.  I can not seem to find the buttoncolumn for a datagrid.  I am not sure if this is because I have only VB.net studio or if it because you can only use a button column for web apps.  

Here is my current code.

        Dim ts As DataGridTableStyle
        ts = New DataGridTableStyle
        ts.MappingName = DS1.Tables(0).ToString()
      Dim col1 As New DataGridTextBoxColumn
        With col1
            .MappingName = "StockNum"
            .HeaderText = "Stock #"
            .Width = 80
        End With

        Dim col2 As New DataGridTextBoxColumn
        With col2
            .MappingName = "Desc"
            .HeaderText = "Description"
            .Width = 80
        End With

        Dim col3 As New DataGridTextBoxColumn
        With col3
            .MappingName = "AskingPrice"
            .HeaderText = "Asking Price"
            .Width = 80
            .Format = "c"
            .Alignment = HorizontalAlignment.Right
        End With

        ts.GridColumnStyles.AddRange(New DataGridColumnStyle() {col1, col2, col3, col4, col5, col6, col7})
        With grdInventory
            .TableStyles.Add(ts)
            .DataSource = DS1.Tables(0)
        End With

I want to add a column with  buttons for my first column that will bring up a details page.  
0
Comment
Question by:Tygh
[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
1 Comment
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1500 total points
ID: 12404140
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

656 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