From: Chris on 21 Apr 2010 19:27 Hello. I develop an application in which I show records in a gridView. Then I'd like to select multiple records after which I click on a button and want to pass the list of selected records to an object. But I don't manage to select multiple records in the gridview !!! I tried by adding a checkboxfield but, apart from the column header, the actual checkbox for each record doesn't appear in the grid. Nor does anything happen when I click in that column So how? Apart from the checkboxfield, is there another way to select multiple records? thank you Chris
From: Gregory A. Beamer on 22 Apr 2010 01:13 "Chris" <cmrchs(a)gmail.com> wrote in message news:d309779e-8e5a-4519-8bf0-a5689a4a1173(a)u34g2000yqu.googlegroups.com... > Hello. > > I develop an application in which I show records in a gridView. > Then I'd like to select multiple records after which I click on a > button and want to pass the list of selected records to an object. > > But I don't manage to select multiple records in the gridview !!! > > I tried by adding a checkboxfield but, apart from the column header, > the actual checkbox for each record doesn't appear in the grid. Nor > does anything happen when I click in that column > > So how? > Apart from the checkboxfield, is there another way to select multiple > records? Do you really want me to answer the question? Or do you want a solution to the fact your checkboxes are not showing up? Because the answer to your question is "No, you are screwed". But I don't really think you are asking that. I think you have just gone down the solution route and want to solve the way you are trying to solve the problem. Don't worry, this is normal and how the human mind works. It is called chasing after sunk cost. But, the answer to your problem is easy. Use templates. In Visual Studio, or Expression, you can set up a templated column and bind it. If you want to use the automagic stuff, add this field to your data (probably a DataSet?) and set it to false. Then, the Grid will automagically add the info. You can then set it to be a checkbox, if you wish. Realistically, you should almost always use templates, as it gives you, not the .NET drag and drop stuff, control of your UI. To do this, right click on the Grid and edit columns. -- Peace and Grace, Greg Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ************************************************ | Think outside the box! | ************************************************
|
Pages: 1 Prev: solution w multiple web projects Next: Help me solve this problem |