sir i have some problem ,my question is i have a droupdownlist ,in that droupdownlist 12 months are present like jan,feb,march.....dec. and another i have a droupdownlist .in that droupdownlist no.of years are present . my question is when i choose one month and year ,that month each day day will show in gridview headertext each column like jan1 one column, jan2 another column ,jan3 another one column..........jan31 ,like every month change same like that how it is possible in asp.net with c# language with example and code?
Answers (1)
0
We can put fields on report dynamically. For it we have to put formula-fields on report on design time.
We can put fields value from database in formula-fields in our c# coding.
For example AttendenceReport is crystal report having formula-field "status".
AttendenceReport objAttendenceReport=new AttendenceReport();
//{AttendenceTable.Status} values coming from //database objAttendenceReport.DataDefinition.FormulaFields["Status"].Text = "{AttendenceTable.Status}";