Baba
Baba

Reputation: 2209

creating a checkbox in a grid

I have to create a grid in mvc which will have the following columns

select -- checkbox,
Invoice date,
Invoice Number,
Acct Number,
Amount,
Amount due

Users will be able to click on a checkbox under select column for a line of record. I am new to Mvc. How do I write a viewmodel for this? Do I include the first column "select" in the viewmodel? How will I also represent this in my html?

Upvotes: 0

Views: 64

Answers (1)

sander
sander

Reputation: 749

Information about webgrid

Your ViewModel is just a normal model: Boolean, DateTime, int, int, int, DateTime (I guess). And your select is just plain text; it is not going to vary from record to record.

Upvotes: 1

Related Questions