|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid QuestionI have a DataGrid that its filled from a DataTable. this datagrid has autogeneratecolumns=true cause this datatable could have different number of columns. My problem its that: I need that the first column be a link button column. What its the best way to implement it?, i only imagine that i can derive from DataGrid Class. Passing to a method of this grid class derived, the datatable. this way, depending of the columns of the datatable, i can add to the grid, the columns in execution time. Its this a good solution? There is any easier? -- Thanks Regards. Josema -- Thanks Regards. Josema You can have manually declared columns and also have AutoGenerateColumns
enabled. -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > Hi, > > I have a DataGrid that its filled from a DataTable. > > this datagrid has autogeneratecolumns=true cause this datatable could > have different number of columns. > > My problem its that: > > I need that the first column be a link button column. > > What its the best way to implement it?, i only imagine that i can > derive > from DataGrid Class. Passing to a method of this grid class derived, > the > datatable. > this way, depending of the columns of the datatable, i can add to the > grid, > the columns in execution time. > Its this a good solution? > There is any easier?
How to get the HtmlForm element of an ASP.NET Page?
CreateUserWizard Control Hidden Controls yield inconsistent behavior on Postbacks Automatic updating an ASPX page DropDownList - Programmatically setting the background colour of i Drop down list viewstate; please HELP! Can I set initial focus from server-side into textbox? custom webcontrol : render and then get "html" result in server side HOWTO: Bring that row back into focus ... Text Length |
|||||||||||||||||||||||