Simple DataGrid Question?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

In one of my web form we are using datagrid server control. There are 5 columns (Sr.No,ProductID,ProductName,Quantity,Rate) in the gird. In footer or edit template I used textbox and dropdownbox controls.

What I want if user put some values in textbox (for ex. ProductID), ProductName automatic select in next column or if user select ProductName from DropDownlist ,the ProductID automatic display in Textbox. Productlist is bind with products table. I also set AutopostBack=True for both the controls. I want this functionality work with both the cases (Footer/Edit).

So how can I trap this event in datagrid.

Please help me.

Thanks in advance

Amit Pardeshi
 
Amit,

I have some sample code on my web site, www.aboutfortunate.com, that may
help you. It shows how to find the row in a datagrid when a checkbox in that
row is checked. It will get you started with what you want to do. I also
have a javascript component on the site that lets you set focus to any
control.

All the code on my website is free. For the datagrid example click on the
"Code Library" link on the top right of the site and then search for:
"Checkbox in datagrid" or something similar. For the javascript component
click on the "Javascript" button in the menu on the left after you are in
the code library.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
Amit said:
Hi All,

In one of my web form we are using datagrid server control. There are 5
columns (Sr.No,ProductID,ProductName,Quantity,Rate) in the gird. In footer
or edit template I used textbox and dropdownbox controls.
What I want if user put some values in textbox (for ex. ProductID),
ProductName automatic select in next column or if user select ProductName
from DropDownlist ,the ProductID automatic display in Textbox. Productlist
is bind with products table. I also set AutopostBack=True for both the
controls. I want this functionality work with both the cases (Footer/Edit).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top