Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't select first row in Datagrid

Status
Not open for further replies.

clemrock

Programmer
May 20, 2004
118
US

Hello,

I have been very successfull in using datagrids to display mysql data. Everything works great except, I can't ever select the first row of the datagrid. All other rows's repond fine when clicked using the data_grid.selectedIndex method.

Any Ideas?

Thanks a bunch,

Clem C
 
I guess the first question is how are you getting the data into the grid? XML?

Can you provide a little of the code that you have implemented so we can help you a bit better?

Wow JT that almost looked like you knew what you were doing!
 
I'm using a amfphp remoting calls to a mysql db.

Thanks for your time,

Clem C
 
Here's a bit of Actionscript code that populates the datagrid



main_responder.add_update_segment_Result = function( add_update_result )
{
data_array = new Array();
clip_info_input.txt_selected_segment_id = add_update_result.id;
for( i=0; i < add_update_result.result_slct_segments.getLength(); i++)
{
var item_segments = add_update_result.result_slct_segments.getItemAt(i);

data_array.push( { segment_id:item_segments.segment_id, code_1:item_segments.code_value, start_time:item_segments.start_time, stop_time:item_segments.stop_time, length:item_segments.segment_length, example:check_visible, incomplete:item_segments.incomplete,start_seg:item_segments.start_seg,end_seg:item_segments.end_seg } );
}
list_grd.dataProvider = data_array;
}
 
hmmm I don't know anything about Flash remoting... sorry :-(

I'm sure someone can probably help though. If you post the code that is populating the Grid maybe I could give you a hand.
 
the data_array.push( {... } );

section is where the data grid is populated.

Thanks for your help...

Clem C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top