HighTechTalks DotNet Forums  

GridView Binding!!

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss GridView Binding!! in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vai2000
 
Posts: n/a

Default GridView Binding!! - 01-26-2007 , 11:26 AM






Hi All, I have a DataList and a grid view control on the same page. The way
GridView binds is if an item is selected on Datalist the GridView Binds to
that selected value.

I want the Datalist to automatically fire off an event with default selected
value so that the gridview can bind when the page loads. How can I set "
default selected value "in datalist?

This is my current Code!!!!
protected void Item_Command(Object sender, DataListCommandEventArgs e){

DataList1.SelectedIndex = e.Item.ItemIndex;

}



TIA



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.