PC Review


Reply
Thread Tools Rate Thread

Datagrid Row Selection Issue

 
 
Jennifer
Guest
Posts: n/a
 
      16th Aug 2004
I had this beautiful datagrid on an ASP page (VB.Net as the code
behind). When I clicked on a Select Button, the row was selected and
the background color changed the way it was supposed to. The
SelectedIndexChanged event was called. It made me happy.

Alas, I did something to my datagrid and rows were no longer being
seleted. The SelectedIndexChanged event was ignored. Background
colors did not change for the selected row. Not being sure what it
was I did to cause this tragedy, I deleted and created another one.
And yet the problem persists.

I'm no longer sure what to even check for.

I'm almost positive that there is some little thing I did not do, some
setting that was not set properly. This is how I created the second
grid. Forgive me if I get too detailed...

I went to the ToolBox and clicked on the DataGrid control and dragged
it to the form. I named the dataGrid to dgDSR. I right clicked on
dgDSR and selected Property Builder. I went to the Columns tab
(though it's not a true tab, is it?) I went to the Available Columns
and expanded the Buttons Columns list. I picked "Select" and added it
to the Selected Columns. I changed the text to "+" and made it a
push-button. I next went to the Format "tab" and expanded Items in
the Objects list. I selected "Selected Items" and changed the
background color to a nice shade of blue.

I closed the Property Builder. I wrote some code to fill the grid.
The grid is filled with data. I would think that at this point, even
if I don't have any code in the SelectedIndexChanged event that the
row would at least be highlighted when the push-button is clicked.
Right? I don't see a AutoPostBack for the datagrid in the properties.
Is there one and do I need one? At this point I am frustrated and
confused and don't know what to do.

Another question - should this be posted on an ASP newgroup? I didn't
think so, since this really doesn't involve ASP code right now. BUt
if so, just let me know. Any response would be appreciated.

Does anyone have any suggestions? What did I miss?

Thanks,
Jennifer
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MVVM: Single datagrid row selection when a datagrid contains anotherdatagrid in side RowDetailsTemplate Sunita@.NET Microsoft C# .NET 0 12th Nov 2010 09:03 AM
Datagrid row selection Gav Microsoft C# .NET 0 31st Oct 2005 04:25 PM
datagrid combo box selection not showing in datagrid JL3574 l Microsoft C# .NET 0 19th Oct 2005 05:47 PM
Filling One DataGrid Based on Selection from Another DataGrid - Both in Separate User Controls thegame Microsoft ASP .NET 1 28th Feb 2005 04:23 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Microsoft Excel Programming 3 7th Jun 2004 09:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 AM.