Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 10th, 2008, 01:05 AM
fripper
Guest
 
Posts: n/a
Default DataGrid Question

I am using VB .Net 2003.

I am really struggling to understand how to display a table (datagrid) in a
web app. Let me explain what I want to do ... I want the table to be, say,
six columns wide. Columns 1, 3, 5 and 6 will contain data that is in an
array ... assume it is simple integer data. Now, I want columns 2 and 4 to
be pushbutton columns whereby when the user clicks on either the pushbutton
in column 2 or the one in column 4 an event is fired (SelectedIndexChanged)
that allows me to determine the row number AND the column number of the
button that was clicked. I have played around with this some using a
datagrid. At design time I can seet up the two puchbutton columns (using
the columns property of the datagrid) but I don't know how to make them
appear in columns 2 and 4 ... it seems that they come first and then the
data columns I add programmatically. So I have two questions:

How do I get the pushbuttons into columns 2 and 4?
How do I determine which column a pushbutton is in when a user clicks it?


Thanks for any help ... this problem is driving me batty!




 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles