Click here to Skip to main content
15,895,538 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Multiple violations! Pin
leckey28-Dec-07 11:11
leckey28-Dec-07 11:11 
QuestionShowing custom controls? Pin
Benny_Lava27-Dec-07 22:36
Benny_Lava27-Dec-07 22:36 
AnswerRe: Showing custom controls? Pin
Dave Kreskowiak30-Dec-07 7:59
mveDave Kreskowiak30-Dec-07 7:59 
GeneralCannot open View Designer in Visual Studio Pin
Meenge27-Dec-07 20:21
Meenge27-Dec-07 20:21 
GeneralRe: Cannot open View Designer in Visual Studio Pin
Paul Conrad30-Dec-07 10:41
professionalPaul Conrad30-Dec-07 10:41 
GeneralControl For Crystal in VB.Net As VB Pin
Meenge27-Dec-07 20:15
Meenge27-Dec-07 20:15 
GeneralRe: Control For Crystal in VB.Net As VB Pin
Paul Conrad30-Dec-07 10:43
professionalPaul Conrad30-Dec-07 10:43 
QuestionDataGrid Column Identification Assistance w/Buttons using the SelectedIndexChange Event Pin
dhbaer27-Dec-07 7:53
dhbaer27-Dec-07 7:53 
I am using ASP.NET to create this datagrid, but I am trying to do all of the code in the VB code section and not the html section.

I am building a datagrid as follows:
3 Text Columns
1 Link Button Column
1 Push Button Column

In Property Builder, I have set the "Command Name" for both the Link Button and Push Button columns to "Select". This is so that when the user clicks on the column, I can use the SelectedIndexChange event and determine what row they are clicking on. The only problem is that in doing so, I cannot determine the column they are clicking on. Is there any code I can use on the VB side in the datagrid SelectedIndexChange sub to determine what column was clicked in? Anything from the header of the column or even just the column index itself. The SelectedIndexChange sub is written such:

Private Sub dg_LastSevenDays_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
dg_LastSevenDays.SelectedIndexChanged
End Sub

When I try to see what data I can get from 'sender' or 'e', all they reference is the datagrid itself and not anything within it.

Search for solutions online, I found a few that would work if this was a compiled application and not a web application. Has anyone run into this before?

David
GeneralArabic language Pin
hassanasp27-Dec-07 6:37
hassanasp27-Dec-07 6:37 
GeneralRe: Arabic language Pin
Paul Conrad27-Dec-07 15:03
professionalPaul Conrad27-Dec-07 15:03 
GeneralRe: Arabic language Pin
hassanasp28-Dec-07 11:07
hassanasp28-Dec-07 11:07 
GeneralRe: Arabic language Pin
nishkarsh_k28-Dec-07 6:51
nishkarsh_k28-Dec-07 6:51 
AnswerRe: Arabic language Pin
Shimmy Weitzhandler29-Dec-07 7:59
Shimmy Weitzhandler29-Dec-07 7:59 
AnswerRe: Arabic language Pin
Shimmy Weitzhandler29-Dec-07 8:01
Shimmy Weitzhandler29-Dec-07 8:01 
GeneralRe: Arabic language thanks Pin
hassanasp31-Dec-07 12:42
hassanasp31-Dec-07 12:42 
QuestionDataGridView = AcceptChanges, Details = ? Pin
tellytub27-Dec-07 3:12
tellytub27-Dec-07 3:12 
AnswerRe: DataGridView = AcceptChanges, Details = ? Pin
John_Adams27-Dec-07 4:37
John_Adams27-Dec-07 4:37 
GeneralRe: DataGridView = AcceptChanges, Details = ? Pin
tellytub28-Dec-07 18:34
tellytub28-Dec-07 18:34 
QuestionGrid and combo box issue redefined [modified] Pin
nishkarsh_k27-Dec-07 0:20
nishkarsh_k27-Dec-07 0:20 
GeneralRe: Grid and combo box issue redefined Pin
darkelv27-Dec-07 1:07
darkelv27-Dec-07 1:07 
GeneralRe: Grid and combo box issue redefined Pin
helelark12327-Dec-07 1:16
helelark12327-Dec-07 1:16 
GeneralRe: Grid and combo box issue redefined Pin
BOREC27-Dec-07 1:16
BOREC27-Dec-07 1:16 
Generaldatagridviewcomboboxcolumn selectionbackcolor Pin
helelark12327-Dec-07 0:01
helelark12327-Dec-07 0:01 
GeneralRe: datagridviewcomboboxcolumn selectionbackcolor Pin
KaptinKrunch28-Dec-07 6:41
KaptinKrunch28-Dec-07 6:41 
GeneralRe: datagridviewcomboboxcolumn selectionbackcolor Pin
helelark12328-Dec-07 21:42
helelark12328-Dec-07 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.