
May 17th, 2001, 09:55 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
DataGrid questions
<i><b>Originally posted by : .netGuy (mbvbasic@libero.it)</b></i><br />I'm using the DataGrid control in ASP.NET. I believe it's really the most useful control, but I have some questions about it?<br /><br />1) It seems that through the PagerStyle I can choose to have the "Previous - Next" buttons or the pages' numbers to click. Can I have both <br /><br />of them?<br /><br />2) Again on the pager: put that I select the Prev and Next buttons, but I also want to have a label on the same line saying what page I'm <br /><br />watching, or a textbox and a button to jump to a specifica line, or something else. Can I add custom info to the standard style? I know I <br /><br />can build a custom pager, but I don't want to do it, because in that case I would have to build everything, instead I want to keep the <br /><br />standard style + a custom button/label etc. Is this possible?<br /><br />3) Reading the doc I see that in addition to the UpdateCommand, CancelCommand and EditCommand there is aslo an DeleteCommand, probably to <br /><br />delete the correspondent row. But how to use it? For editing I add an EditCommandColumn, but what do I do for the delete command?? also, it <br /><br />would be great to have the delete and edit commands on the same column, as most of the ASP datagrid (I mean the DLL components) allow to <br /><br />do. Possibile?<br /><br />4) I can't see any AddCommand. I was quite surprise not to find it. There is the possibility to edit and delete (I suppose) a row, why not <br /><br />adding a property that if set on true adds an empty row at with textboxes at the top/bottom of the grid allowing the user to add a new DB <br /><br />item? Do I need to use an other page to do it?<br /><br />I know that I've post a lot of questions, but every help will be very appreciated!<br />Regards,<br />.netGuy, an enthusiast learner
|