How to bind data to GridView table

Greetings,

In the table seen in the picture below I'm trying to populate column 1 with information based on the users login name.  The first section will provide two boxes for the user name and domain.  Based on this information the cells in column 1 will automatically populate.

Need help with this.

Thanks
UserModTable.JPG
John500Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jinn_hnnlCommented:
Create your gridView, bind your gridView datasource to an ObjectDataSource which rely on username and domain, this ObjectDataSource has a select method which require 2 parameters loginname & domain.

Look at my example, the UserProject.UserClass is a class where you define the GetUserChangeTable(string loginname, string domain)

Hope this helps

JINN


<asp:GridView ID="gvUserChange" runat="server"  DataSourceID="objdsUserChange" ...>
</asp:GridView>
 
<asp:ObjectDataSource ID="objdsUserChange" runat="server" SelectMethod="GetUserChangeTable" TypeName="UserProject.UsersClass" ...>
	<SelectParameters>
                    <asp:ControlParameter ControlID="tbLoginName" PropertyName="Text" Type="String" />		
                    <asp:ControlParameter ControlID="ddlDomain" PropertyName="SelectedValue" Name="Domain" Type="String" />
	</SelectParameters>
</asp:ObjectDataSource>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John500Author Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.